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[]