예제 #1
0
        public void GetChecksumTest()
        {
            string input1 = "5 1 9 5";
            string input2 = "7 5 3";
            string input3 = "2 4 6 8";

            var row1 = ci.GetList(input1, ' ');
            var row2 = ci.GetList(input2, ' ');
            var row3 = ci.GetList(input3, ' ');

            List <int>[] inputMatrix = { row1, row2, row3 };


            int result = dt.GetChecksum(inputMatrix);
            int want   = 18;

            Assert.AreEqual(want, result);
        }