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.
Inheritance
object ← CompareSuiteImplements
IList<CompareAssertion>, ICollection<CompareAssertion>, IEnumerable<CompareAssertion>, IEnumerableInherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()Properties
Count
Gets the number of elements contained in the ICollection`1.Property Value
intIsReadOnly
Gets a value indicating whether the ICollection`1 is read-only.Property Value
boolLog
Property Value
stringMessage
Property Value
stringthis[int]
Gets or sets the element at the specified index.Property Value
CompareAssertionExceptions
ArgumentOutOfRangeExceptionindex is not a valid index in the IList`1.
NotSupportedException
The property is set and the IList`1 is read-only.
Methods
Add(IDataset, IDataset, bool)
Parameters
a IDataset
b IDataset
assertDatasetsSame bool
Add(CompareAssertion)
Adds an item to the ICollection`1.Parameters
item CompareAssertion
The object to add to the ICollection`1.
Exceptions
NotSupportedException The ICollection`1 is read-only.Clear()
Removes all items from the ICollection`1.Exceptions
NotSupportedException The ICollection`1 is read-only.Contains(CompareAssertion)
Determines whether the ICollection`1 contains a specific value.Parameters
item CompareAssertion
The object to locate in the ICollection`1.
Returns
bool true ifitem is found in the ICollection`1; otherwise, false.
CopyTo(CompareAssertion[], int)
Copies the elements of the ICollection`1 to an Array, starting at a particular Array index.Parameters
array CompareAssertion[]
The one-dimensional Array that is the destination of the elements copied from ICollection`1. The Array must have zero-based indexing.
arrayIndex int
The zero-based index in array at which copying begins.
Exceptions
ArgumentNullExceptionarray is null.
ArgumentOutOfRangeException
arrayIndex is less than 0.
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.Returns
IEnumerator<CompareAssertion> An enumerator that can be used to iterate through the collection.IndexOf(CompareAssertion)
Determines the index of a specific item in the IList`1.Parameters
item CompareAssertion
The object to locate in the IList`1.
Returns
int The index ofitem if found in the list; otherwise, -1.
Insert(int, CompareAssertion)
Inserts an item to the IList`1 at the specified index.Parameters
index int
The zero-based index at which item should be inserted.
item CompareAssertion
The object to insert into the IList`1.
Exceptions
ArgumentOutOfRangeExceptionindex is not a valid index in the IList`1.
NotSupportedException
The IList`1 is read-only.
Remove(CompareAssertion)
Removes the first occurrence of a specific object from the ICollection`1.Parameters
item CompareAssertion
The object to remove from the ICollection`1.
Returns
bool true ifitem was successfully removed from the ICollection1; 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 ICollection1.
Exceptions
NotSupportedException The ICollection`1 is read-only.RemoveAt(int)
Removes the IList`1 item at the specified index.Parameters
index int
The zero-based index of the item to remove.
Exceptions
ArgumentOutOfRangeExceptionindex is not a valid index in the IList`1.
NotSupportedException
The IList`1 is read-only.