Exemplo n.º 1
0
        public void returns_959()
        {
            var input = File.ReadAllLines("Files\\Day05.txt");

            var result = new Day05Task1().FindHighestSeatId(input);

            result.Should().Be(959);
        }
Exemplo n.º 2
0
        public void returns_max_seat_id()
        {
            var input = new[]
            {
                "FBFBBFFRLR",
                "BFFFBBFRRR",
                "FFFBBBFRRR",
                "BBFFBBFRLL"
            };

            var result = new Day05Task1().FindHighestSeatId(input);

            result.Should().Be(820);
        }
Exemplo n.º 3
0
        public void returns_seat_id(string input, int expected)
        {
            var result = new Day05Task1().FindSeatId(input);

            result.Should().Be(expected);
        }
Exemplo n.º 4
0
        public void finds_column(string input, int expected)
        {
            var result = new Day05Task1().FindColumn(input);

            result.Should().Be(expected);
        }