Share via


ExpectedExceptionBaseAttribute.NoExceptionMessage Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Syntax

'Declaration
Protected Friend Overridable ReadOnly Property NoExceptionMessage As String
protected internal virtual string NoExceptionMessage { get; }
protected public:
virtual property String^ NoExceptionMessage {
    String^ get ();
}
abstract NoExceptionMessage : string with get 
override NoExceptionMessage : string with get
function get NoExceptionMessage () : String

Property Value

Type: String

Remarks

If the test fails because an exception was not thrown, this message is included in the test result.

.NET Framework Security

See Also

Reference

ExpectedExceptionBaseAttribute Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace