ExpectedSqlExceptionAttribute.Severity Property

 

Gets or sets the expected severity value of the error.

Namespace:   Microsoft.Data.Tools.Schema.Sql.UnitTesting
Assembly:  Microsoft.Data.Tools.Schema.Sql.UnitTesting (in Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll)

Syntax

public byte Severity { get; set; }
public:
property unsigned char Severity {
    unsigned char get();
    void set(unsigned char value);
}
member Severity : byte with get, set
Public Property Severity As Byte

Property Value

Type: System.Byte

The expected severity level.

Remarks

If not supplied, the severity level from the thrown exception is ignored.

See Also

ExpectedSqlExceptionAttribute Class
Microsoft.Data.Tools.Schema.Sql.UnitTesting Namespace

Return to top