NUnit.Framework.Assert.Throws(NUnit.Framework.Constraints.IResolveConstraint, NUnit.Framework.TestDelegate, string)

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

26 Examples 7

1. Example

Project: nunitlite
Source File: Assert.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

2. Example

Project: AutoTest.Net
Source File: Assert.template.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

3. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

4. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

5. Example

Project: AutoTest.Net
Source File: Assert.template.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

6. Example

Project: AutoTest.Net
Source File: Assert.template.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

7. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

8. Example

Project: AutoTest.Net
Source File: Assert.template.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

9. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

10. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

11. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

12. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

13. Example

Project: nunitlite
Source File: Assert.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

14. Example

Project: msgpack-cli
Source File: Assert.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

15. Example

Project: msgpack-cli
Source File: Assert.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

16. Example

Project: ContinuousTests
Source File: Assert.template.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

17. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

18. Example

Project: ContinuousTests
Source File: Assert.template.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

19. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

20. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

21. Example

Project: ContinuousTests
Source File: Assert.template.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

22. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

23. Example

Project: ContinuousTests
Source File: Assert.template.cs
View license
public static Exception Catch(TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(typeof(Exception)), code, message);
        }

24. Example

Project: ContinuousTests
Source File: Assert.cs
View license
public static Exception Catch(Type expectedExceptionType, TestDelegate code, string message)
        {
            return Throws(new InstanceOfTypeConstraint(expectedExceptionType), code, message);
        }

25. Example

Project: SewingMachine
Source File: TestActor.cs
View license
public Task When_Remove_non_existent_value_should_throw(CancellationToken cancellationToken)
        {
            IntPtr unsafeKey;
            Create(key, "Value", out unsafeKey);

            using (var tx = OpenSession())
            {
                Assert.Throws(Is.AssignableTo<Exception>(), () => tx.Remove(unsafeKey, 0), "Should not remove non-existing entry");
            }

            return Completed;
        }

26. Example

Project: IronTextLibrary
Source File: ScannerTest.cs
View license
[Test]
        public void TestScanner()
        {
            var lang = Language.Get(typeof(MyMini/n ..... /n //View Source file for more details /n }