NUnit.Framework.Assert.That(ref bool, NUnit.Framework.Constraints.IResolveConstraint, string)

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

2 Examples 7

1. Example

Project: nunitlite
Source File: AssertThatTests.cs
View license
[Test]
        public void AssertionPasses_ReferenceAndConstraintWithMessage()
        {
            bool value = true;
            Assert.That(ref value, Is.True, "Message");
        }

2. Example

Project: nunitlite
Source File: AssertThatTests.cs
View license
[Test, ExpectedException(typeof(AssertionException), ExpectedMessage = "message", MatchType = MessageMatch.Contains)]
        public void FailureThrowsAssertionException_ReferenceAndConstraintWithMessage()
        {
            bool value = false;
            Assert.That(ref value, Is.True, "message");
        }