Show / Hide Table of Contents

Class AssertCollectionCountException

Exception thrown when the collection did not contain exactly the given number element.

Inheritance
Object
XunitException
AssertCollectionCountException
Inherited Members
XunitException.StackTrace
XunitException.UserMessage
XunitException.ToString()
Namespace: Xunit.Sdk
Assembly: xunit.assert.dll
Syntax
public class AssertCollectionCountException : XunitException

Constructors

| Improve this Doc View Source

AssertCollectionCountException(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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX