-
Notifications
You must be signed in to change notification settings - Fork 158
Assert.Catch
jnm2 edited this page Jun 14, 2017
·
6 revisions
Assert.Catch is similar to Assert.Throws but will pass for an exception that is derived from the one specified.
Exception Assert.Catch(TestDelegate code);
Exception Assert.Catch(TestDelegate code,
string message, params object[] parms);
Exception Assert.Catch(Type expectedExceptionType, TestDelegate code);
Exception Assert.Catch(Type expectedExceptionType, TestDelegate code,
string message, params object[] parms);
T Assert.Catch<T>(TestDelegate code);
T Assert.Catch<T>(TestDelegate code,
string message, params object[] parms);
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0
-
NUnit
-
Release Notes
-
License
- Getting Started
- Writing Tests
- Running Tests
- Extending NUnit
- Technical Notes
-
Release Notes
- NUnit Xamarin Runners
- VS Test Adapter
- VS Test Generator
- NUnit Analyzers