Beispiel #1
0
        public void CantDivideByZero()
        {
            var c = new Calculator();

            try
            {
                c.DivideNumbers(1, 0);
                Assert.Fail();
            }
            catch (System.DivideByZeroException)
            {
                Assert.Pass();
            }
        }