Exemplo n.º 1
0
        public void Solve()
        {
            var subject = new Day13Solution();

            var result = subject.SolvePart1(@"/->-\        
|   |  /----\
| /-+--+-\  |
| | |  | v  |
\-+-/  \-+--/
  \------/   ");

            result.Should().Be("(7, 3)");
        }
Exemplo n.º 2
0
        public void ShouldWork()
        {
            var subject  = new Day13Solution();
            var progress = new Progress <string>(s =>
            {
                output.WriteLine(s);
            });

            var result = subject.SolvePart1(@"|
v
|
|
|
^
|
", progress);

            result.Should().Be("(0, 3)");
        }