Exemplo n.º 1
0
        public void handle_nop_operation_returns_next_line_of_1_more()
        {
            var state = new Day08Task1.State(123, 10);
            var nop   = new Day08Task1.Nop(12);

            var result = nop.Handle(state);

            result.NextLine.Should().Be(11);
        }
Exemplo n.º 2
0
        public void handle_nop_operation_returns_the_same_accumulator()
        {
            var state = new Day08Task1.State(123, 10);
            var nop   = new Day08Task1.Nop(11);

            var result = nop.Handle(state);

            result.Accumulator.Should().Be(123);
        }
Exemplo n.º 3
0
        public void handle_nop_operation_sets_was_executed_flag()
        {
            var state = new Day08Task1.State(123, 10);
            var nop   = new Day08Task1.Nop(13);

            nop.WasExecuted.Should().BeFalse();
            var result = nop.Handle(state);

            nop.WasExecuted.Should().BeTrue();
        }