예제 #1
0
        public void TestDevide()
        {
            var cal = new FirstUnitTest.Calculation();

            Assert.Equal(10, cal.Divide(20, 2));
        }
예제 #2
0
        public void TestMultiple()
        {
            var cal = new FirstUnitTest.Calculation();

            Assert.Equal(6, cal.Multiple(2, 3));
        }
예제 #3
0
        public void TestDevideByZero()
        {
            var cal = new FirstUnitTest.Calculation();

            Assert.Throws <DivideByZeroException>(() => cal.Divide(2, 0));
        }
예제 #4
0
        public void TestAdd()
        {
            var cal = new FirstUnitTest.Calculation();

            Assert.Equal(4, cal.Add(2, 2));
        }