示例#1
0
        public void ParseProperFractionTest3()
        {
            var parse    = new ParseDecimalToFraction();
            var actual   = parse.CreateProperFractionFromDecimal(5.82m);
            var expected = "5 3/4";

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void PraseProperFractionTest6()
        {
            var parse    = new ParseDecimalToFraction();
            var actual   = parse.CreateProperFractionFromDecimal(9m);
            var expected = "9";

            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void ParseProperFractionTest1()
        {
            var parse    = new ParseDecimalToFraction();
            var actual   = parse.CreateProperFractionFromDecimal(1.26m);
            var expected = "1 1/3";

            Assert.AreEqual(expected, actual);
        }