Esempio n. 1
0
        public void ExtractingActualValue()
        {
            ExtractingConstraint constraint = new ExtractingConstraint("E");

            Assertion.AssertEquals("Should be modified value", "A", constraint.ExtractActualValue("ACTUAL"));
            Assertion.Assert("Should match", constraint.Eval("EQUALS FIRST CHAR"));
            Assertion.Assert("Should be different", new Not(constraint).Eval("NOT EQUAL"));
        }
Esempio n. 2
0
		public void ExtractingActualValue()
		{
			ExtractingConstraint constraint = new ExtractingConstraint("E");

			Assertion.AssertEquals("Should be modified value", "A", constraint.ExtractActualValue("ACTUAL"));
			Assertion.Assert("Should match", constraint.Eval("EQUALS FIRST CHAR"));
			Assertion.Assert("Should be different", new Not(constraint).Eval("NOT EQUAL"));
		}