예제 #1
0
        public void CheckSummer_CheckSum_ReturnsCorrectly_ForEvenDivideStrategy()
        {
            var checkSummer = new CheckSummer(new EvenDivideCheckSumStrategy());

            var checkSum = checkSummer.CheckSum("day2testinput2.txt");

            Assert.Equal(9, checkSum);
        }
예제 #2
0
        public void CheckSummer_CheckSum_ReturnsCorrectly_ForMinMaxStrategy()
        {
            var checkSummer = new CheckSummer(new MinMaxDiffCheckSumStrategy());

            var checkSum = checkSummer.CheckSum("day2testinput.txt");

            Assert.Equal(18, checkSum);
        }