示例#1
0
        public void TestMethodKuerze()
        {
            //Arrange
            Bruch bruch = new Bruch(6, 2);

            //Act
            bruch.Kuerze();

            //Assert
            Assert.AreEqual(3, bruch.Zaehler);
            Assert.AreEqual(1, bruch.Nenner);
        }
示例#2
0
        public void BruchKuerzen_6_2_mit_Ergebnis_3_1()
        {
            //Arrange
            Bruch bruch = new Bruch(6, 2);

            //Act
            bruch.Kuerze();

            //Assert
            Assert.AreEqual(3, bruch.Zaehler);
            Assert.AreEqual(1, bruch.Nenner);
        }