Assert.DoesNotThrow 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DoesNotThrow(TestDelegate) | |
DoesNotThrow(TestDelegate, String) | |
DoesNotThrow(TestDelegate, String, Object[]) |
DoesNotThrow(TestDelegate)
public static void DoesNotThrow (NUnit.Framework.TestDelegate code);
static member DoesNotThrow : NUnit.Framework.TestDelegate -> unit
参数
- code
- TestDelegate
适用于
DoesNotThrow(TestDelegate, String)
public static void DoesNotThrow (NUnit.Framework.TestDelegate code, string message);
static member DoesNotThrow : NUnit.Framework.TestDelegate * string -> unit
参数
- code
- TestDelegate
- message
- String
适用于
DoesNotThrow(TestDelegate, String, Object[])
public static void DoesNotThrow (NUnit.Framework.TestDelegate code, string message, params object[] args);
static member DoesNotThrow : NUnit.Framework.TestDelegate * string * obj[] -> unit
参数
- code
- TestDelegate
- message
- String
- args
- Object[]