Verifies that two specified generic type data are not equal. The assertion fails if they are equal. Displays a message if the assertion fails.
Namespace:
Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:
Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Visual Basic (Declaration)
Public Shared Sub AreNotEqual(Of T) ( _
notExpected As T, _
actual As T, _
message As String _
)
Dim notExpected As T
Dim actual As T
Dim message As String
Assert.AreNotEqual(notExpected, actual, _
message)
public static void AreNotEqual<T>(
T notExpected,
T actual,
string message
)
public:
generic<typename T>
static void AreNotEqual(
T notExpected,
T actual,
String^ message
)
JScript does not support generic types or methods.
Parameters
- notExpected
- Type: T
The first generic type data to compare. This is the generic type data the unit test expects not to match actual.
- actual
- Type: T
- message
- Type: System..::.String
T is the type of values to compare.
Reference
Other Resources