-
Now support comparing
InnerExceptions
if the exceptions is an aggregate exception -
SameExceptionAs overload to provide error details if there is a mismatch
You can now either do:
bool isMatch = actualException.SameExceptionAs(expectedException;
OR to get the details if there is any differences
bool isMatch = actualException.SameExceptionAs(expectedException, out string message);