Exemplo n.º 1
0
        public void TestPart1Solution(string inputFile, long expected)
        {
            // Arrange
            long[] input = Helpers.ReadIntCodeInput($"../../../{inputFile}");

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

            // Assert
            Assert.Equal(expected, result);
        }
Exemplo n.º 2
0
        public void TestPart1Solution(string inputFile, int expected)
        {
            // Arrange
            string[] lines = System.IO.File.ReadAllLines($"../../../{inputFile}");

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

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