public void TestMinusZero() { //arrange string entryNum = "-0"; string expected = "Minus Zero"; ConvertNum cn = new ConvertNum(); // act Trace.WriteLine(cn.Convert(entryNum)); // assert string result = cn.Convert(entryNum); Assert.AreEqual(expected, result); }
public void TestTenThous() { //arrange string entryNum = "10001"; string expected = "Ten Thousand and One"; ConvertNum cn = new ConvertNum(); // act Trace.WriteLine(cn.Convert(entryNum)); // assert string result = cn.Convert(entryNum); Assert.AreEqual(expected, result); }
public void TestMilHundThous() { //arrange string entryNum = "1100000"; string expected = "One Million One Hundred Thousand"; ConvertNum cn = new ConvertNum(); // act Trace.WriteLine(cn.Convert(entryNum)); // assert string result = cn.Convert(entryNum); Assert.AreEqual(expected, result); }