AssertFailedException Constructor (String)
Initializes a new instance of the AssertFailedException class that uses with a specified error message.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public Sub New ( _
msg As String _
)
public AssertFailedException(
string msg
)
public:
AssertFailedException(
String^ msg
)
new :
msg:string -> AssertFailedException
public function AssertFailedException(
msg : String
)
Parameters
- msg
Type: System.String
The message that describes the error.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
AssertFailedException Overload
Microsoft.VisualStudio.TestTools.UnitTesting Namespace