예제 #1
0
        public void Check_Array_Sum_Variable_Size()
        {
            // arrange (setup)
            var arrayInstance  = new Lab_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 TestMethod1()
        {
            //arange (setup)
            var arrayInstance  = new Lab_04_array.Array();
            var expectedOutPut = 285;
            // (run code)
            var actualOutput = arrayInstance.CreateArray();

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