Ejemplo n.º 1
0
 public void SetUp()
 {
     Matcher     = new FalseConstraint();
     GoodValues  = new object[] { false, 2 + 2 == 5 };
     BadValues   = new object[] { null, "hello", true, 2 + 2 == 4 };
     Description = "False";
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     theConstraint        = new FalseConstraint();
     stringRepresentation = "<false>";
     expectedDescription  = "False";
 }
        public void Check_WithTrue_ExpectFalse()
        {
            var constraint = new FalseConstraint();

            Assert.IsFalse(constraint.Check(true));
        }
Ejemplo n.º 4
0
 public void SetUp()
 {
     theConstraint = new FalseConstraint();
     stringRepresentation = "<false>";
     expectedDescription = "False";
 }
        public void Check_WithFalse_ExpectTrue()
        {
            var constraint = new FalseConstraint();

            Assert.IsTrue(constraint.Check(false));
        }