NUnit.Framework.Assert.That(bool, NUnit.Framework.Constraints.IResolveConstraint, System.Func)

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

3 Examples 7

1. Example

Project: msgpack-cli
Source File: Assert.That.cs
View license
public static void That(bool condition, Func<string> getExceptionMessage)
        {
            Assert.That(condition, Is.True, getExceptionMessage);
        }

2. Example

Project: nunit
Source File: Assert.That.cs
View license
public static void That(bool condition, Func<string> getExceptionMessage)
        {
            Assert.That(condition, Is.True, getExceptionMessage);
        }

3. Example

Project: nunit
Source File: Assert.That.cs
View license
public static void That(Func<bool> condition, Func<string> getExceptionMessage)
        {
            Assert.That(condition.Invoke(), Is.True, getExceptionMessage);
        }