Пример #1
0
        public void CalculateTest(
            double first,
            double expected)
        {
            var calculator   = new DivisionByOne();
            var actualResult = calculator.CalculateTwo(first);

            Assert.AreEqual(expected, actualResult, 0.001);
        }
Пример #2
0
        public void WrongAnswer()
        {
            var calculator = new DivisionByOne();

            Assert.Throws <Exception>(code: () => calculator.CalculateTwo(0));
        }