Throws.InvalidOperationException 属性

定义

创建一个指定预期 TargetInvocationException 的约束

public static NUnit.Framework.Constraints.ExactTypeConstraint InvalidOperationException { get; }
member this.InvalidOperationException : NUnit.Framework.Constraints.ExactTypeConstraint

属性值

适用于