Skip to content

TestHarness<TCycle>.AssertEqual Method ​

Definition ​

Asserts that the actual value is equal to the expected value. If the values are not equal, an error is reported.

c#
public void AssertEqual<T>(T? actual, T? expected, DefaultInterpolatedStringHandler message);

View source

Type Parameters ​

NameDescription
TThe type of the values being compared.

Parameters ​

NameTypeDescription
actualTThe actual value to be checked.
expectedTThe expected value to compare against.
messageDefaultInterpolatedStringHandlerAn interpolated string handler providing a custom error message if the values are not equal.