示例#1
0
 public void ConstantParsedDoesNotTakeBadInput()
 {
     // still not sure why this doesn't work.
     ConstantParser TestConstantParser = new ConstantParser();
     bool results = TestConstantParser.ConstTest("xy = 0");
     Assert.AreEqual(false, results);
 }
示例#2
0
 public void ConstantParsing()
 {
     ConstantParser TestConstantParser = new ConstantParser();
     bool results = TestConstantParser.ConstTest("t = 0");
     Assert.AreEqual(true, results);
 }
示例#3
0
 public void ConstantParsedDoesNotTakeBadInput2()
 {
     ConstantParser TestConstantParser = new ConstantParser();
     bool results = TestConstantParser.ConstTest("0 = x");
     Assert.AreEqual(false, results);
 }