You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a class that overloads operators == and !=, writing the proper unit tests results in MSTEST0037: Use proper 'Assert' methods:
public sealed class SomeClass
{
public static Boolean operator ==(SomeClass left, SomeClass right)
{
...
}
public static Boolean operator !=(SomeClass left, SomeClass right)
{
...
}
}
[TestMethod]
public void SomeClass_TestOperatorEquals()
{
var left = new SomeClass(...);
var right = new SomeClass(...);
Assert.IsTrue(laft == right); // MSTEST0037
}
The text was updated successfully, but these errors were encountered:
If you have a class that overloads operators
==
and!=
, writing the proper unit tests results inMSTEST0037: Use proper 'Assert' methods
:[TestMethod]
public void SomeClass_TestOperatorEquals()
{
var left = new SomeClass(...);
var right = new SomeClass(...);
Assert.IsTrue(laft == right); // MSTEST0037
}
The text was updated successfully, but these errors were encountered: