public void TestZero() { INumberToWord system = new InternationalNumberSystem(); NumberSystem numberSystem = new NumberSystem(system); string expected = "Zero"; string actual = numberSystem.Convert(0); Assert.AreEqual(expected, actual, false); }
public void TestThousand1() { INumberToWord system = new InternationalNumberSystem(); NumberSystem numberSystem = new NumberSystem(system); string expected = "One Thousand"; string actual = numberSystem.Convert(1000); Assert.AreEqual(expected, actual, false); }
public void TestBillion() { INumberToWord system = new InternationalNumberSystem(); NumberSystem numberSystem = new NumberSystem(system); string expected = "One Hundred Two Billion Five Hundred Twenty Three Million Four Hundred Fifty Six Thousand Seven Hundred Eighty Nine"; string actual = numberSystem.Convert(102523456789); Assert.AreEqual(expected, actual, false); }
public void TestNegative() { INumberToWord system = new InternationalNumberSystem(); NumberSystem numberSystem = new NumberSystem(system); string expected = "Negative Ninety Nine"; string actual = numberSystem.Convert(-99); Assert.AreEqual(expected, actual, false); }