public void ToogleMinus2() { TFracEditor testClass = new TFracEditor("-14/3"); testClass.ToogleSign(); string result = "14/3"; Assert.AreEqual(result, testClass.ToString()); }
public void AddDeleteTest1() { TFracEditor testClass = new TFracEditor("123/123"); testClass.AddNumber(0); testClass.AddNumber(1); testClass.AddNumber(3); testClass.AddSeparator(); testClass.ToogleSign(); string result = "-1/1013"; Assert.AreEqual(result, testClass.ToString()); }