Пример #1
0
 public void SetUp()
 {
     Matcher = new NaNConstraint();
     GoodValues = new object[] { double.NaN, float.NaN };
     BadValues = new object[] { null, "hello", 42, 4.2, 4.2f, 4.2m, 
         double.PositiveInfinity, double.NegativeInfinity,
         float.PositiveInfinity, float.NegativeInfinity };
     Description = "NaN";
 }
Пример #2
0
 public void SetUp()
 {
     TheConstraint        = new NaNConstraint();
     ExpectedDescription  = "NaN";
     StringRepresentation = "<nan>";
 }
Пример #3
0
 public void SetUp()
 {
     theConstraint = new NaNConstraint();
     expectedDescription = "NaN";
     stringRepresentation = "<nan>";
 }