Method ForMismatchedItemCount
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
ForMismatchedItemCount(int, int, string)
Creates an instance of the CollectionException class to be thrown when the item count in a collection does not match the expected count.
public static CollectionException ForMismatchedItemCount(int expectedCount, int actualCount, string formattedCollection)
Parameters
expectedCountintThe expected item count
actualCountintThe actual item count
formattedCollectionstringThe formatted collection