예제 #1
0
        public void Test1()
        {
            int x = 103;
            int y = Calk.Plus(3, 100);

            Assert.AreEqual(x, y, " x = {0} , y = {1}", x, y);
            Assert.IsTrue(x == y, " x = {0} , y = {1}", x, y);
        }
예제 #2
0
        public void Test4(int x, int y, int z)
        {
            int res = Calk.Div(x, y);

            Assert.AreEqual(z, res);
        }
예제 #3
0
        public void Test3(int x, int y, int z)
        {
            int res = Calk.Mul(x, y);

            Assert.AreEqual(z, res);
        }
예제 #4
0
        public void Test2(int x, int y, int z)
        {
            int res = Calk.Sub(x, y);

            Assert.AreEqual(z, res);
        }