예제 #1
0
        public void Check_Array_Sum_Variable_Size()
        {
            //Another test, different parameters
            //Arrange (setup)
            var arrayInstance  = new labs_04_array.Array();
            var expectedOutput = 2470;

            //Act(Run code)
            var actualOutput = arrayInstance.CreateArray(20);

            //Assert (see if test pass/fail)
            Assert.AreEqual(expectedOutput, actualOutput);
        }
예제 #2
0
        public void Check_Array_Sum()
        {
            //==3 Buzzwords for testing==
            //Arrange (setup)
            var arrayInstance  = new labs_04_array.Array();
            var expectedOutput = 285;

            //Act(Run code)
            var actualOutput = arrayInstance.CreateArray(10);

            //Assert (see if test pass/fail)
            Assert.AreEqual(expectedOutput, actualOutput);
        }