public void CharacterInputTest2() { var NumericConverter = new NumericConverter.Converter(); bool chars = NumericConverter.ForbiddenCharacters("h4sd55s2", 15.25); Assert.IsFalse(chars); }
public void CharacterInputTest15() { var conversionWebSite = new NumericConverter.Converter(); bool chars = conversionWebSite.ForbiddenCharacters("6947.", 15.25); Assert.IsTrue(chars); }
public void TenThousandsTest3() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.TenThousands(7, 7, digits, tens, teens, 4); Assert.AreEqual(value, "SEVENTY-"); }
public void MillionsTest4() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Millions(0, digits, units); Assert.AreEqual(value, "ZERO MILLION "); }
public void MillionsTest5() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Millions(7, digits, units); Assert.IsFalse(value == "SIX MILLION "); }
public void EmptyStringTest5() { var conversionWebSite = new NumericConverter.Converter(); bool value = conversionWebSite.EmptyString(".25"); Assert.IsFalse(value); }
public void EmptyStringTest4() { var conversionWebSite = new NumericConverter.Converter(); bool value = conversionWebSite.EmptyString(null); Assert.IsTrue(value); }
public void Leading0sTest5() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.RemoveLeading0s("050505"); Assert.AreEqual(value, "50505"); }
public void CharacterInputTest10() { var conversionWebSite = new NumericConverter.Converter(); bool chars = conversionWebSite.ForbiddenCharacters("550^.10", 15.25); Assert.AreEqual(chars, false); }
public void HundredsTest9() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Hundreds(9, 0, 9, digits, units); Console.WriteLine(value); Assert.AreEqual(value, "NINE HUNDRED AND "); }
public void HundredsTest6() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Hundreds(0, 0, 0, digits, units); Console.WriteLine(value); Assert.AreEqual(value, ""); }
public void HundredsTest3() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Hundreds(0, 7, 3, digits, units); Console.WriteLine(value); Assert.IsFalse(value == "SEVEN HUNDRED AND "); }
public void OnesTest4() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Ones(2, 3, digits, 1); Console.WriteLine(value); Assert.IsTrue(value == "TWO "); }
public void TensTest9() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Tens(0, 5, tens, teens); Console.WriteLine(value); Assert.IsFalse(value == "ZER0 "); }
public void TensTest7() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Tens(0, 6, tens, teens); Console.WriteLine(value); Assert.IsTrue(value == ""); }
public void TensTest2() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Tens(8, 9, tens, teens); Console.WriteLine(value); Assert.AreEqual(value, "EIGHTY-"); }
public void TensTest3() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Tens(1, 7, tens, teens); Console.WriteLine(value); Assert.AreEqual(value, "SEVENTEEN "); }
public void TenThousandsTest7() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.TenThousands(0, 1, digits, tens, teens, 4); Console.WriteLine(value); Assert.AreEqual(value, "ONE "); }
public void TensTest8() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Tens(0, 8, tens, teens); Console.WriteLine(value); Assert.IsFalse(value == "EIGHTY" || value == "EIGHTEEN"); }
public void ThousandsTest3() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Thousands(1, 7, digits, units, 4); Console.WriteLine(value); Assert.AreEqual(value, "ONE THOUSAND "); }
public void OnesTest3() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Ones(5, 7, digits, 2); Console.WriteLine(value); Assert.AreEqual(value, "FIVE "); }
public void ThousandsTest5() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Thousands(0, 6, digits, units, 4); Console.WriteLine(value); Assert.IsTrue(value == "ZERO THOUSAND "); }
public void OnesTest8() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Ones(2, 0, digits, 0); Console.WriteLine(value); Assert.AreEqual(value, "TWO "); }
public void ThousandsTest6() { var conversionWebSite = new NumericConverter.Converter(); string value = conversionWebSite.Thousands(0, 3, digits, units, 4); Console.WriteLine(value); Assert.IsFalse(value == "THREE THOUSAND "); }