1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
// ****************************************************************
// Copyright 2012, Charlie Poole
// This is free software licensed under the NUnit license. You may
// obtain a copy of the license at http://nunit.org
// ****************************************************************
#if CLR_2_0 || CLR_4_0
using System;
namespace NUnit.Framework.Constraints
{
[TestFixture]
public class PredicateConstraintTests : ConstraintTestBase
{
[SetUp]
public void SetUp()
{
theConstraint = new PredicateConstraint<int>((x) => x < 5 );
expectedDescription = @"value matching lambda expression";
stringRepresentation = "<predicate>";
}
internal object[] SuccessData = new object[]
{
0,
-5
};
internal object[] FailureData = new object[]
{
123
};
internal string[] ActualValues = new string[]
{
"123"
};
}
}
#endif
|