public void CreateInstanceFromEquationTest1() { var test = Units.CreateInstanceFromEquation("test {unit1/unit2}"); Assert.IsNotNull(test); Assert.AreEqual("unit1/unit2", test.Eqn); }
public void CreateInstanceFromEquationTest() { Assert.IsNull(Units.CreateInstanceFromEquation(null)); Assert.IsNull(Units.CreateInstanceFromEquation(string.Empty)); Assert.IsNull(Units.CreateInstanceFromEquation("test")); }