Table of Contents

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

expectedCount int

The expected item count

actualCount int

The actual item count

formattedCollection string

The formatted collection

Returns