I have inherited some unit test code that gives me an obsolescence warning because it uses "Assertion.AssertEquals":
warning CS0618: "NUnit.Framework.Assertion" is deprecated: "Use the Assert class instead"
However, I don't see the obvious method in the Assert class that I should use instead?
AssertEquals accepts two objects and a message that can be used to report an error if there is a failure. eg.
Assertion.AssertEquals(
"Enqueuing first item should set count to 1",
1, pq.Count);
What is the equivalent method in the Assert class?
source
share