예제 #1
0
        public void TestMethod2()
        {
            ArithmaticClass arithmaticClass = new ArithmaticClass();

            int x = 10;

            int result = arithmaticClass.randomFunction(x);

            Assert.AreEqual(9, result);
        }
예제 #2
0
        public void TestMethod1()
        {
            ArithmaticClass arithmaticClass = new ArithmaticClass();

            int x = 10;
            int y = 20;

            int expectedResult = 30;
            int result         = arithmaticClass.sumNumber(x, y);

            Assert.AreEqual(expectedResult, result);
        }