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