コード例 #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);
        }