Пример #1
0
        public void When_no_routine_address_supplied_set_result_to_0()
        {
            const ushort packedRoutineAddress = 0;
            var          args = new OperandBuilder()
                                .WithArg(packedRoutineAddress)
                                .Build();

            Mockery
            .AssertStackIsEmpty();

            Mockery
            .SetRoutineArgCount(0);

            Operation.Execute(args);

            Mockery
            .ResultDestinationRetrievedFromPC()
            .ResultStoredWasByte(0);
        }