ICSharpCode.SharpUnit an Unit Testing Framework for .NET

Assertion.AssertEquals Method (String, Object, Object)

Asserts that two objects are equal.

public static void AssertEquals(
   string message,
   object expected,
   object current
);

Parameters

message
The message to display if the two objects aren't equal.
expected
The expected value
current
The current value

Exceptions

Exception TypeCondition
AssertionFailedException thrown if !excepted.Equals(current)

See Also

Assertion Class | Assertion Members | ICSharpCode.SharpUnit Namespace | Assertion.AssertEquals Overload List