Description for Assert.Equals() from the MSDN Documentation: Do not use this method.
That's it, the full explanation. Uh.. ok, but then ... why is it there? Is it a deprecated method from an earlier version of the framework? Something that's supposed to be used only by other Microsoft Assemblies?
It just makes me want to use it all the more knowing I'm not supposed to. ;-)
Does anyone know?
AreEqual tests whether the two arguments are equal.
Tests whether the specified condition is true and throws an exception if the condition is false. IsTrue() Tests whether the specified condition is true and throws an exception if the condition is false.
@After annotation is used on a method containing java code to run after each test case.
Attributes used to identify test classes and methods Every test class must have the TestClass attribute, and every test method must have the TestMethod attribute.
.Equals is inherited from object. It's listed as "Do not use this method" so users won't confuse it with the AreEqual method.
All objects in .NET derive from Object.
Object has a .Equals() method.
Apparently the .Equals() method for this particular object doesn't do anything useful, so the docs are warning you that it doesn't do anything useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With