예제 #1
0
        public void Day02_Part2_Examples()
        {
            var d = new Day02();

            Assert.AreEqual(34, d.SolutionPart2("2x3x4"));
            Assert.AreEqual(14, d.SolutionPart2("1x1x10"));
        }
예제 #2
0
        public void Day02_Part1_Examples()
        {
            var d = new Day02();

            Assert.AreEqual(58, d.SolutionPart1("2x3x4"));
            Assert.AreEqual(43, d.SolutionPart1("1x1x10"));
        }
예제 #3
0
        public void Day02_Part2_Solution()
        {
            var d = new Day02();

            var input = FileHelper.ReadTestFile(2);
            Assert.IsNotNull(input);

            var expected = 3783758;
            var actual = d.SolutionPart2(input);

            Assert.AreEqual(expected, actual);
        }