示例#1
0
        public void SolverTest1()
        {
            StringInput input    = new StringInput("5 10 25", "25 10 5", "5 10 10", "5 10 5", "5 10 6");
            Day3Solver  solution = new Day3Solver();

            solution.GetSolution(input).FirstPart.Should().Be("2");
        }
示例#2
0
        public void SolverSecondPartTest2()
        {
            StringInput input = new StringInput(
                "1 2 3",
                "1 2 3",
                "1 2 3");
            Day3Solver solution = new Day3Solver();

            solution.GetSolution(input).SecondPart.Should().Be("3");
        }
示例#3
0
        public void SolverSecondPartTest1()
        {
            StringInput input = new StringInput(
                "5  10 25",
                "25 10 5",
                "5  10 10");
            Day3Solver solution = new Day3Solver();

            solution.GetSolution(input).SecondPart.Should().Be("1");
        }