1
// ****************************************************************
2
// Copyright 2007, Charlie Poole
3
// This is free software licensed under the NUnit license. You may
4
// obtain a copy of the license at http://nunit.org.
5
// ****************************************************************
7
namespace NUnit.Framework.Constraints
10
public class AndTest : ConstraintTestBase
15
theConstraint = new AndConstraint(new GreaterThanConstraint(40), new LessThanConstraint(50));
16
expectedDescription = "greater than 40 and less than 50";
17
stringRepresentation = "<and <greaterthan 40> <lessthan 50>>";
20
internal object[] SuccessData = new object[] { 42 };
22
internal object[] FailureData = new object[] { 37, 53 };
24
internal string[] ActualValues = new string[] { "37", "53" };
27
public void CanCombineTestsWithAndOperator()
29
Assert.That(42, new GreaterThanConstraint(40) & new LessThanConstraint(50));
b'\\ No newline at end of file'