コード例 #1
0
        public void TestMethod1()
        {
            //Arrange ( Create objects and prepare everything needed to test functionality )
            SimpleTest maths = new SimpleTest();

            //Act ( Execute and get the output )
            int result = maths.Add(6, 5);

            //Assert ( Compare final output with expected Output )
            Assert.AreEqual <int>(11, result);
        }