Exemple #1
0
        public void test_15_7()
        {
            Bruch test = new Bruch(15, 7);

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

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

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

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