示例#1
0
 public void TestExtractVars()
 {
     EquationConversion.ResetEquationConversion();
     if (ControlFlow.Initialize())
     {
         // unittest-controlextractvars
         string[] vars = ControlFlow.ExtractVariables("x+y");
         Assert.AreEqual("x", vars[0]);
         Assert.AreEqual("y", vars[1]);
     }
     else
     {
         Assert.Fail();
     }
 }