public void TestBs3() { Converter.Editor editor = new Converter.Editor(); editor.AddDigit(3); editor.AddDigit(3); editor.AddDigit(3); editor.AddDelim(); editor.Bs(); string ExpectedValue = "333"; string ActualValue = editor.Number; Assert.AreEqual(ExpectedValue, ActualValue); }
public void TestAddDigit2() { Converter.Editor editor = new Converter.Editor(); editor.AddDigit(0); editor.AddDigit(0); editor.AddDigit(0); editor.AddDigit(0); editor.AddDigit(0); string ExpectedValue = "0"; string ActualValue = editor.Number; Assert.AreEqual(ExpectedValue, ActualValue); }
public void TestAcc3() { Converter.Editor editor = new Converter.Editor(); editor.AddDelim(); editor.AddDigit(1); editor.AddDigit(9); editor.AddDigit(9); editor.AddDigit(9); editor.AddDigit(9); int ExpectedValue = 5; int ActualValue = editor.Acc(); Assert.AreEqual(ExpectedValue, ActualValue); }
public void TestAddDigit4() { Converter.Editor editor = new Converter.Editor(); editor.AddDigit(15); editor.AddDigit(12); editor.AddDigit(1); editor.AddDelim(); editor.AddDigit(1); editor.AddDigit(9); string ExpectedValue = "FC1.19"; string ActualValue = editor.Number; Assert.AreEqual(ExpectedValue, ActualValue); }
public void TestAddDigit6() { Converter.Editor editor = new Converter.Editor(); editor.AddDigit(-12); }
public void TestAddDigit5() { Converter.Editor editor = new Converter.Editor(); editor.AddDigit(17); }