NUnit.Framework.Assert.That(NUnit.Framework.Constraints.ActualValueDelegate, NUnit.Framework.Constraints.IResolveConstraint, string, params object[])

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

34 Examples 7

1. Example

Project: nunit
Source File: AssertionHelper.cs
View license
public void Expect<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, string message, params object[] args)
        {
            Assert.That(del, expr, message, args);
        }

2. Example

Project: msgpack-cli
Source File: AssertionHelper.cs
View license
public void Expect<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, string message, params object[] args)
        {
            Assert.That(del, expr, message, args);
        }

3. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

4. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

5. Example

Project: nunit
Source File: Assert.That.cs
View license
public static void That<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

6. Example

Project: nunit
Source File: AssertionHelper.cs
View license
public void Expect<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

7. Example

Project: nunit
Source File: AssertThatTests.cs
View license
[Test]
        public void AssertionPasses_ActualLambdaAndConstraintWithMessageAndArgs()
        {
            Assert.That(() => 2 + 2, Is.EqualTo(4), "Should be {0}", 4);
        }

8. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

9. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

10. Example

Project: nunit
Source File: AssertThatTests.cs
View license
[Test]
        public void AssertionPasses_DelegateAndConstraintWithMessageAndArgs()
        {
            Assert.That(new ActualValueDelegate<int>(ReturnsFour), Is.EqualTo(4), "Should be {0}", 4);
        }

11. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

12. Example

Project: AutoTest.Net
Source File: Assert.template.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

13. Example

Project: AutoTest.Net
Source File: Assert.template.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

14. Example

Project: AutoTest.Net
Source File: Assert.template.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

15. Example

Project: AutoTest.Net
Source File: Assert.template.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

16. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

17. Example

Project: AutoTest.Net
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

18. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

19. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

20. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

21. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

22. Example

Project: ContinuousTests
Source File: Assert.template.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

23. Example

Project: ContinuousTests
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

24. Example

Project: ContinuousTests
Source File: Assert.template.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

25. Example

Project: ContinuousTests
Source File: Assert.template.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

26. Example

Project: ContinuousTests
Source File: Assert.template.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

27. Example

Project: nunitlite
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

28. Example

Project: msgpack-cli
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

29. Example

Project: msgpack-cli
Source File: Assert.That.cs
View license
public static void That<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

30. Example

Project: msgpack-cli
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

31. Example

Project: msgpack-cli
Source File: AssertionHelper.cs
View license
public void Expect<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr)
        {
            Assert.That(del, expr.Resolve(), null, null);
        }

32. Example

Project: nunitlite
Source File: Assert.cs
View license
static public void That(ActualValueDelegate del, IResolveConstraint expr, string message)
        {
            Assert.That(del, expr.Resolve(), message, null);
        }

33. Example

Project: nunit
Source File: AssertThatTests.cs
View license
[Test]
        public void FailureThrowsAssertionException_ActualLambdaAndConstraintWithMessageAndArgs()
        {
            var ex = Assert.Throws<AssertionException>(() => Assert.That(() => 2 + 2, Is.EqualTo(5), "Should be {0}", 5));
            Assert.That(ex.Message, Does.Contain("Should be 5"));
        }

34. Example

Project: nunit
Source File: AssertThatTests.cs
View license
[Test]
        public void FailureThrowsAssertionException_DelegateAndConstraintWithMessageAndArgs()
        {
            var ex = Assert.Throws<AssertionException>(() => Assert.That(new ActualValueDelegate<int>(ReturnsFive), Is.EqualTo(4), "Should be {0}", 4));
            Assert.That(ex.Message, Does.Contain("Should be 4"));
        }