Exemplo n.º 1
0
        public void test_15_7()
        {
            Bruch test = new Bruch(15, 7);

            Assert.IsTrue(test.ToString() == "2 1/7");
        }
Exemplo n.º 2
0
        public void test_full_five()
        {
            Bruch test = new Bruch(5);

            Assert.IsTrue(test.ToString() == "5");
        }
Exemplo n.º 3
0
        public void tofloat()
        {
            Bruch test = new Bruch(3, 4);

            Assert.IsTrue(test.ToFloat() == 0.75f);
        }
Exemplo n.º 4
0
        public void test_one_half()
        {
            Bruch test = new Bruch(1, 2);

            Assert.IsTrue(test.ToString() == "1/2");
        }