共用方式為


ExpectedExceptionBaseAttribute.SpecifiedNoExceptionMessage Property

Definition

Gets the message to include in the test result if the test fails due to not throwing an exception

protected:
 property System::String ^ SpecifiedNoExceptionMessage { System::String ^ get(); };
protected string SpecifiedNoExceptionMessage { get; }
member this.SpecifiedNoExceptionMessage : string
Protected ReadOnly Property SpecifiedNoExceptionMessage As String

Applies to