public void ConstTestGetACharDoesntHaveAValue() { Constant consta = new Constant(); string constResult = consta.ConstantGetFunction('e'); Assert.IsNull(constResult); }
public void ConstTestGetAnExistingValueIsNotNull() { Constant consta = new Constant(); string constResult = consta.ConstantSetFunction('b', 8); string constResult2 = consta.ConstantGetFunction('b'); Assert.IsNotNull(constResult2); }
public void ConstTestTypeOfOutputValue() { Constant consta = new Constant(); consta.ConstantSetFunction('d', 4); string constResult = consta.ConstantGetFunction('d'); Assert.AreEqual(typeof(string), constResult.GetType()); }
public void ConstTestGetAnExistingValue() { Constant consta = new Constant(); consta.ConstantSetFunction('c', 9); string constResult = consta.ConstantGetFunction('c'); Assert.AreEqual("9", constResult); }