Ejemplo n.º 1
0
        public void ShouldGetHundredThousand()
        {
            var t = new ThousandPlace(300000);
            Assert.AreEqual(t.ToWord(), "Three Hundred Thousand");

            var t1 = new ThousandPlace(333000);
            Assert.AreEqual(t1.ToWord(), "Three Hundred and Thirty Three Thousand");
        }
Ejemplo n.º 2
0
        public void ShouldGetTenThousand()
        {
            var t = new ThousandPlace(30000);
            Assert.AreEqual(t.ToWord(), "Thirty Thousand");

            var t1 = new ThousandPlace(31000);
            Assert.AreEqual(t1.ToWord(), "Thirty One Thousand");

            var t2 = new ThousandPlace(99900);
            Assert.AreEqual(t2.ToWord(), "Ninety Nine Thousand");
        }
Ejemplo n.º 3
0
 public void ShouldGetThousand()
 {
     var t = new ThousandPlace(3000);
     Assert.AreEqual(t.ToWord(), "Three Thousand");
 }