예제 #1
0
        public void stm_float()
        {
            float x    = 2.0f;
            float y    = 3.0f;
            float diff = -1.0f;

            float res = new Math.Subtractor().sub(x, y);

            Assert.AreEqual(diff, res);
        }
예제 #2
0
        public void stm_int()
        {
            int x    = 2;
            int y    = 3;
            int diff = -1;

            int res = new Math.Subtractor().sub(x, y);

            Assert.AreEqual(diff, res);
        }