Class AssertCollectionCountException
Exception thrown when the collection did not contain exactly the given number element.
Namespace: Xunit.Sdk
Assembly: xunit.assert.dll
Syntax
public class AssertCollectionCountException : XunitException
Constructors
| Improve this Doc View SourceAssertCollectionCountException(Int32, Int32)
Initializes a new instance of the AssertCollectionCountException class.
Declaration
public AssertCollectionCountException(int expectedCount, int actualCount)
Parameters
Type | Name | Description |
---|---|---|
Int32 | expectedCount | The expected number of items in the collection. |
Int32 | actualCount | The actual number of items in the collection. |