Beispiel #1
0
        public void TestZero()
        {
            int zero = 0;

            Assert.AreEqual(NumericSpelling.ToVerbal(zero), "zero");
        }
Beispiel #2
0
        public void Testtrillion()
        {
            long Trillian = 10576749323475;

            Assert.AreEqual(NumericSpelling.ToVerbal(Trillian), "ten trillion, five hundred and seventy six billion, seven hundred and forty nine million, three hundred and twenty three thousand, four hundred and seventy five");
        }
Beispiel #3
0
        public void TestHundred()
        {
            int hundred = 100;

            Assert.AreEqual(NumericSpelling.ToVerbal(hundred), "one hundred");
        }
Beispiel #4
0
        public void TestThousand()
        {
            int thousand = 10004;

            Assert.AreEqual(NumericSpelling.ToVerbal(thousand), "ten thousand and four");
        }
Beispiel #5
0
        public void TestNegative()
        {
            int testNegative = -1095;

            Assert.AreEqual(NumericSpelling.ToVerbal(testNegative), "negative one thousand and ninety five");
        }