Throws a CompareException if the classes are equal
Syntax
Visual Basic (Declaration) | |
---|
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Sub ShouldNotCompare(Of T)( _
ByVal actual As T, _
ByVal expected As T, _
Optional ByVal message As System.String _
) |
Visual Basic (Usage) | Copy Code |
---|
Dim actual As T
Dim expected As T
Dim message As System.String
CompareExtensions.ShouldNotCompare(Of T)(actual, expected, message) |
C# | |
---|
[System.Runtime.CompilerServices.Extension()]
public static void ShouldNotCompare<T>(
T actual,
T expected,
System.string message
) |
Managed Extensions for C++ | |
---|
[System.Runtime.CompilerServices.Extension()]
public: static void ShouldNotCompare<T>(
T* actual,
T* expected,
System.string* message
) |
Parameters
Type Parameters
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also