コード例 #1
0
        public void Day02_Part1_Examples()
        {
            var d = new Day02();

            Assert.AreEqual(58, d.SolutionPart1("2x3x4"));
            Assert.AreEqual(43, d.SolutionPart1("1x1x10"));
        }
コード例 #2
0
        public void Day02_Part1_Solution()
        {
            var d = new Day02();

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

            var expected = 1588178;
            var actual = d.SolutionPart1(input);

            Assert.AreEqual(expected, actual);
        }