Partager via


AssertFailedException Constructor

Initializes a new instance of the AssertFailedException class.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Sub New
public AssertFailedException()
public:
AssertFailedException()
new : unit -> AssertFailedException
public function AssertFailedException()

Remarks

This uses a system supplied error message.

.NET Framework Security

See Also

Reference

AssertFailedException Class

AssertFailedException Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

Other Resources

Using the Assert Classes