Method ForResult
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
ForResult(bool, object?, object?, Exception?, AssertEqualityResult?)
Creates an instance of AssertEqualityResult.
public static AssertEqualityResult ForResult(bool equal, object? x, object? y, Exception? exception = null, AssertEqualityResult? innerResult = null)
Parameters
equalboolA flag which indicates whether the values were equal
xobjectThe left-hand value in the comparison
yobjectThe right-hand value in the comparison
exceptionExceptionThe optional exception that was thrown to cause the failure
innerResultThe optional inner result that caused the equality failure