C# Class XunitShould.Sdk.CollectionException

Exception thrown when Assert.Collection fails.
Inheritance: XunitException
显示文件 Open project: EddieGarmon/XunitShould

Public Methods

Method Description
CollectionException ( int expectedCount, int actualCount, int indexFailurePoint = -1, Exception innerException = null ) : System

Creates a new instance of the CollectionException class.

Private Methods

Method Description
FormatInnerException ( Exception innerException ) : string

Method Details

CollectionException() public method

Creates a new instance of the CollectionException class.
public CollectionException ( int expectedCount, int actualCount, int indexFailurePoint = -1, Exception innerException = null ) : System
expectedCount int The expected number of items in the collection.
actualCount int The actual number of items in the collection.
indexFailurePoint int The index of the position where the first comparison failure occurred.
innerException System.Exception The exception that was thrown during the comparison failure.
return System