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

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

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

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

            // Assert
            Assert.Equal(expected, result);
        }
示例#3
0
 public void SetUp()
 {
     _solver = new Day13Solver();
     _parser = new Day13Parser();
 }
示例#4
0
 public void SetUp()
 {
     _solver = new Day13Solver();
     _input  = new Day13Input();
 }