> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class CompareSuite

Namespace: [OpenTD.Results.Dataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset)\
Assembly: OpenTD.Results.dll

Use a CompareSuite to test whether multiple pairs of Datasets are equal or not.
Tests a set of CompareAssertions and collects the results.

```csharp theme={null}
public class CompareSuite : IList<CompareAssertion>, ICollection<CompareAssertion>, IEnumerable<CompareAssertion>, IEnumerable
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[CompareSuite](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.CompareSuite.md)

## Implements

[IList\<CompareAssertion>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1),
[ICollection\<CompareAssertion>](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1),
[IEnumerable\<CompareAssertion>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1),
[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable)

## Inherited Members

[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone),
[object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Properties

### Count

Gets the number of elements contained in the ICollection\`1.

```csharp theme={null}
public int Count { get; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### IsReadOnly

Gets a value indicating whether the ICollection\`1 is read-only.

```csharp theme={null}
public bool IsReadOnly { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Log

```csharp theme={null}
public string Log { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### Message

```csharp theme={null}
public string Message { get; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### this\[int]

Gets or sets the element at the specified index.

```csharp theme={null}
public CompareAssertion this[int index] { get; set; }
```

#### Property Value

[CompareAssertion](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.CompareAssertion.md)

#### Exceptions

[ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception)

`index` is not a valid index in the IList\`1.

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The property is set and the IList\`1 is read-only.

## Methods

### Add(IDataset, IDataset, bool)

```csharp theme={null}
public void Add(IDataset a, IDataset b, bool assertDatasetsSame)
```

#### Parameters

`a` [IDataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.IDataset.md)

`b` [IDataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.IDataset.md)

`assertDatasetsSame` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Add(CompareAssertion)

Adds an item to the ICollection\`1.

```csharp theme={null}
public void Add(CompareAssertion item)
```

#### Parameters

`item` [CompareAssertion](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.CompareAssertion.md)

The object to add to the ICollection\`1.

#### Exceptions

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The ICollection\`1 is read-only.

### Clear()

Removes all items from the ICollection\`1.

```csharp theme={null}
public void Clear()
```

#### Exceptions

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The ICollection\`1 is read-only.

### Contains(CompareAssertion)

Determines whether the ICollection\`1 contains a specific value.

```csharp theme={null}
public bool Contains(CompareAssertion item)
```

#### Parameters

`item` [CompareAssertion](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.CompareAssertion.md)

The object to locate in the ICollection\`1.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

[true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if `item` is found in the ICollection\`1; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

### CopyTo(CompareAssertion\[], int)

Copies the elements of the ICollection\`1 to an Array, starting at a particular Array index.

```csharp theme={null}
public void CopyTo(CompareAssertion[] array, int arrayIndex)
```

#### Parameters

`array` [CompareAssertion](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.CompareAssertion.md)\[]

The one-dimensional Array that is the destination of the elements copied from ICollection\`1. The Array must have zero-based indexing.

`arrayIndex` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The zero-based index in `array` at which copying begins.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

`array` is [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null).

[ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception)

`arrayIndex` is less than 0.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

The number of elements in the source ICollection\`1 is greater than the available space from `arrayIndex` to the end of the destination `array`.

### GetEnumerator()

Returns an enumerator that iterates through the collection.

```csharp theme={null}
public IEnumerator<CompareAssertion> GetEnumerator()
```

#### Returns

[IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1)\<[CompareAssertion](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.CompareAssertion.md)>

An enumerator that can be used to iterate through the collection.

### IndexOf(CompareAssertion)

Determines the index of a specific item in the IList\`1.

```csharp theme={null}
public int IndexOf(CompareAssertion item)
```

#### Parameters

`item` [CompareAssertion](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.CompareAssertion.md)

The object to locate in the IList\`1.

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

The index of `item` if found in the list; otherwise, -1.

### Insert(int, CompareAssertion)

Inserts an item to the IList\`1 at the specified index.

```csharp theme={null}
public void Insert(int index, CompareAssertion item)
```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The zero-based index at which `item` should be inserted.

`item` [CompareAssertion](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.CompareAssertion.md)

The object to insert into the IList\`1.

#### Exceptions

[ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception)

`index` is not a valid index in the IList\`1.

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The IList\`1 is read-only.

### Remove(CompareAssertion)

Removes the first occurrence of a specific object from the ICollection\`1.

```csharp theme={null}
public bool Remove(CompareAssertion item)
```

#### Parameters

`item` [CompareAssertion](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.CompareAssertion.md)

The object to remove from the ICollection\`1.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

[true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if `item` was successfully removed from the ICollection`1; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). This method also returns [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if <code className="paramref">item</code> is not found in the original ICollection`1.

#### Exceptions

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The ICollection\`1 is read-only.

### RemoveAt(int)

Removes the IList\`1 item at the specified index.

```csharp theme={null}
public void RemoveAt(int index)
```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The zero-based index of the item to remove.

#### Exceptions

[ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception)

`index` is not a valid index in the IList\`1.

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The IList\`1 is read-only.

### Run()

```csharp theme={null}
public Tuple<int, int> Run()
```

#### Returns

[Tuple](https://learn.microsoft.com/dotnet/api/system.tuple-2)\<[int](https://learn.microsoft.com/dotnet/api/system.int32), [int](https://learn.microsoft.com/dotnet/api/system.int32)>
