示例#1
0
        public void atm_float()
        {
            float x   = 2.0f;
            float y   = 3.0f;
            float sum = 5.0f;

            float res = new Math.Adder().add(x, y);

            Assert.AreEqual(sum, res);
        }
示例#2
0
        public void atm_int()
        {
            int x   = 2;
            int y   = 3;
            int sum = 5;

            int res = new Math.Adder().add(x, y);

            Assert.AreEqual(sum, res);
        }