Beispiel #1
0
        public void Decimal()
        {
            CardinalFilter cf  = new CardinalFilter();
            String         str = cf.GenerateTextFromNumber(0.5f);

            Assert.AreEqual(str, "0.5");
        }
Beispiel #2
0
        public void Zero()
        {
            CardinalFilter cf  = new CardinalFilter();
            String         str = cf.GenerateTextFromNumber(0);

            Assert.AreEqual(str, "0");
        }
Beispiel #3
0
        public void Negative()
        {
            CardinalFilter cf  = new CardinalFilter();
            String         str = cf.GenerateTextFromNumber(-1);

            Assert.AreEqual(str, "-1");
        }
Beispiel #4
0
        public void ThreeAsFloat()
        {
            CardinalFilter cf  = new CardinalFilter();
            String         str = cf.GenerateTextFromNumber(3.0f);

            Assert.AreEqual(str, "three");
        }
Beispiel #5
0
        public void Five()
        {
            CardinalFilter cf  = new CardinalFilter();
            String         str = cf.GenerateTextFromNumber(5);

            Assert.AreEqual(str, "five");
        }
Beispiel #6
0
        public void Nine()
        {
            CardinalFilter cf  = new CardinalFilter();
            String         str = cf.GenerateTextFromNumber(9);

            Assert.AreEqual(str, "nine");
        }
Beispiel #7
0
        public void Large()
        {
            CardinalFilter cf  = new CardinalFilter();
            String         str = cf.GenerateTextFromNumber(10001);

            Assert.AreEqual(str, "10001");
        }