Beispiel #1
0
        public void Check_Devide_Method_return3_point_5()
        {
            uut = new Calculator(14);
            double result   = uut.Divide(4);
            double expected = 3.5;

            Assert.Multiple(() =>
            {
                Assert.That(result, Is.EqualTo(expected));
                Assert.That(uut.Accumulator, Is.EqualTo(expected));
            });
        }
Beispiel #2
0
 public void Check_Devide_Method_DividByZeroExc()
 {
     uut = new Calculator(14);
     Assert.Throws <DivideByZeroException>(() => uut.Divide(0));
 }