NUnit.Framework.Assert.Throws(IResolveConstraint, NUnit.Framework.TestDelegate, string, params object[])

Here are the examples of the csharp api class NUnit.Framework.Assert.Throws(IResolveConstraint, NUnit.Framework.TestDelegate, string, params object[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

1. Example

Project: iOS4Unity
Source File: Assert.cs
View license
public static Exception Throws(IResolveConstraint expression, TestDelegate code, string message)
        {
            return Throws(expression, code, message, null);
        }

2. Example

Project: iOS4Unity
Source File: Assert.cs
View license
public static Exception Throws(IResolveConstraint expression, TestDelegate code)
        {
            return Throws(expression, code, string.Empty, null);
        }

3. Example

Project: nunit-unity3d
Source File: Assert.cs
View license
public static Exception Throws(IResolveConstraint expression, TestDelegate code)
        {
            return Throws(expression, code, string.Empty, null);
        }

4. Example

Project: nunit-unity3d
Source File: Assert.cs
View license
public static Exception Throws(IResolveConstraint expression, TestDelegate code, string message)
        {
            return Throws(expression, code, message, null);
        }