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

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

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

            // Act
            var result = Day19Solver.Part1Solution(input, x, y);

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