コード例 #1
0
        public void Onehundred19Thousand223Test()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.Get("119223");

            Assert.AreEqual("one hundred nineteen thousand two hundred twenty-three", value);
        }
コード例 #2
0
        public void OneThousandTest()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.Get("1000");

            Assert.AreEqual("one thousand", value);
        }
コード例 #3
0
        public void OneThousand888Test()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.Get("1888");

            Assert.AreEqual("one thousand eight hundred eighty-eight", value);
        }
コード例 #4
0
        public void oneandoneTest()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.HundredsString(101M);

            Assert.AreEqual("one hundred one", value.Trim());
        }
コード例 #5
0
        public void FiftyFiveTest()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.HundredsString(55M);

            Assert.AreEqual("fifty-five", value.Trim());
        }
コード例 #6
0
        public void TooSmallTest()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.HundredsString(-1M);

            Assert.AreEqual(string.Empty, value);
        }
コード例 #7
0
        public void nineninenineTest()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.HundredsString(999M);

            Assert.AreEqual("nine hundred ninety-nine", value.Trim());
        }
コード例 #8
0
        public void ZeroTest()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.Get("0");

            Assert.AreEqual("zero", value);
        }
コード例 #9
0
        public void eightteentrillionTest()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.Get("18000000000000");

            Assert.AreEqual("eighteen trillion", value);
        }
コード例 #10
0
        public void thirteenbillion232Test()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.Get("13232000000");

            Assert.AreEqual("thirteen billion two hundred thirty-two million", value);
        }
コード例 #11
0
        public void fourteenbillionTest()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.Get("14000000000");

            Assert.AreEqual("fourteen billion", value);
        }
コード例 #12
0
        public void TwelveMillionTest()
        {
            DecimalToStringController controller = new DecimalToStringController();
            string value = controller.Get("12000000");

            Assert.AreEqual("twelve million", value);
        }