示例#1
0
        public void TestPart1Solution(string inputFile, int expected)
        {
            // Arrange
            string[] lines = System.IO.File.ReadAllLines($"../../../{inputFile}");

            // Act
            var result = Day21Solver.Part1Solution(lines);

            // Assert
            Assert.Equal(expected, result);
        }
示例#2
0
        public void TestPart1Solution(string inputFile, long expected)
        {
            // Arrange
            long[] input = Helpers.ReadIntCodeInput($"../../../{inputFile}");

            // Act
            var result = Day21Solver.Part1Solution(input);

            // Assert
            Assert.Equal(expected, result);
        }