コード例 #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_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);
        }