TestOptions.ExpectedException Property
ExpectedException
Gets or sets the fully qualified name of expected exception type to be thrown.
To set this option in a test, add this comment to your test file: // @ExpectedException(fully qualified exception type name)
.
Declaration
public string? ExpectedException { get; set; }
Property Value
Type | Description |
---|---|
string |