C# Class AggregateSource.Testing.Comparers.CompareNetObjectsBasedExceptionComparer

Compares exception using a ICompareLogic object and reports the differences.
Inheritance: IExceptionComparer
显示文件 Open project: yreynhout/AggregateSource Class Usage Examples

Public Methods

Method Description
Compare ( Exception expected, Exception actual ) : IEnumerable

Compares the expected to the actual exception.

CompareNetObjectsBasedExceptionComparer ( ICompareLogic logic ) : System

Initializes a new instance of the CompareNetObjectsBasedExceptionComparer class.

Method Details

Compare() public method

Compares the expected to the actual exception.
public Compare ( Exception expected, Exception actual ) : IEnumerable
expected System.Exception The expected exception.
actual System.Exception The actual exception.
return IEnumerable

CompareNetObjectsBasedExceptionComparer() public method

Initializes a new instance of the CompareNetObjectsBasedExceptionComparer class.
Thrown when the is null.
public CompareNetObjectsBasedExceptionComparer ( ICompareLogic logic ) : System
logic ICompareLogic The compare logic.
return System