Beispiel #1
0
        public void Add_Ok(int a, int b, int sum)
        {
            MathOp math = new MathOp();
            var    ret  = math.Add(a, b);

            Assert.True(sum == ret);
        }
Beispiel #2
0
        public void Div_Ok(double a, double b, double result)
        {
            MathOp math = new MathOp();
            var    ret  = math.Div(a, b);

            Assert.True(ret == result);
            Assert.Throws <DivideByZeroException>(() => math.Div(3, 0));
        }