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

Here are the examples of the csharp api class NUnit.Framework.Assert.That(bool, 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.

6 Examples 7

1. Example

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

2. Example

Project: msgpack-cli
Source File: Assert.That.cs
View license
public static void That(bool condition, string message, params object[] args)
        {
            Assert.That(condition, Is.True, message, args);
        }

3. Example

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

4. Example

Project: nunit
Source File: Assert.That.cs
View license
public static void That(bool condition, string message, params object[] args)
        {
            Assert.That(condition, Is.True, message, args);
        }

5. Example

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

6. Example

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