示例#1
0
        public void CreateInstanceFromEquationTest1()
        {
            var test = Units.CreateInstanceFromEquation("test {unit1/unit2}");

            Assert.IsNotNull(test);
            Assert.AreEqual("unit1/unit2", test.Eqn);
        }
示例#2
0
 public void CreateInstanceFromEquationTest()
 {
     Assert.IsNull(Units.CreateInstanceFromEquation(null));
     Assert.IsNull(Units.CreateInstanceFromEquation(string.Empty));
     Assert.IsNull(Units.CreateInstanceFromEquation("test"));
 }