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 OrTest : ConstraintTestBase
15
theConstraint = new OrConstraint(new EqualConstraint(42), new EqualConstraint(99));
16
expectedDescription = "42 or 99";
17
stringRepresentation = "<or <equal 42> <equal 99>>";
20
internal object[] SuccessData = new object[] { 99, 42 };
22
internal object[] FailureData = new object[] { 37 };
24
internal string[] ActualValues = new string[] { "37" };
27
public void CanCombineTestsWithOrOperator()
29
Assert.That(99, new EqualConstraint(42) | new EqualConstraint(99) );
b'\\ No newline at end of file'