Assert.Pass 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Pass() |
使用 SuccessException 传入的消息和参数引发 。 这允许缩短测试,成功的结果返回到 NUnit。 |
Pass(String) |
使用 SuccessException 传入的消息和参数引发 。 这允许缩短测试,成功的结果返回到 NUnit。 |
Pass(String, Object[]) |
使用 SuccessException 传入的消息和参数引发 。 这允许缩短测试,成功的结果返回到 NUnit。 |
Pass()
使用 SuccessException 传入的消息和参数引发 。 这允许缩短测试,成功的结果返回到 NUnit。
public static void Pass ();
static member Pass : unit -> unit
适用于
Pass(String)
使用 SuccessException 传入的消息和参数引发 。 这允许缩短测试,成功的结果返回到 NUnit。
public static void Pass (string message);
static member Pass : string -> unit
参数
- message
- String
用于初始化 AssertionException 的消息。
适用于
Pass(String, Object[])
使用 SuccessException 传入的消息和参数引发 。 这允许缩短测试,成功的结果返回到 NUnit。
public static void Pass (string message, params object[] args);
static member Pass : string * obj[] -> unit
参数
- message
- String
用于初始化 AssertionException 的消息。
- args
- Object[]
设置消息格式时要使用的参数