Share via


AfterTestInitializeEventArgs.IsTestInitializeFailed Property

Gets a value that indicates whether the test method that has the TestInitializeAttribute applied has failed to be initialized because of an exception.

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

Syntax

'Declaration
Public ReadOnly Property IsTestInitializeFailed As Boolean
public bool IsTestInitializeFailed { get; }
public:
property bool IsTestInitializeFailed {
    bool get ();
}
member IsTestInitializeFailed : bool
function get IsTestInitializeFailed () : boolean

Property Value

Type: System.Boolean
true if the test method that has the TestInitializeAttribute applied has not been initialized because of an exception; otherwise, false.

.NET Framework Security

See Also

Reference

AfterTestInitializeEventArgs Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

TestInitializeAttribute