public void ToStringReturnsOperandStringRepresentation()
        {
            var cpuStateManager = new Mock<ICpuStateOperations>();
            var operand = new IndirectRegisterOperand { OperandValue = 6 };

            cpuStateManager.Setup(m => m.ReadGeneralPursoseRegisterValue(0x6)).Returns(0x10);
            
            operand.Process(cpuStateManager.Object);

            var expected = string.Format("[{0}]", "I");

            Assert.That(operand.ToString(), Is.EqualTo(expected));
        }
        public void ProcessSetsRegisterValueToAdressOfMemory()
        {
            var cpuStateManager = new Mock<ICpuStateOperations>();
            var operand = new IndirectRegisterOperand { OperandValue = 6 };

            cpuStateManager.Setup(m => m.ReadGeneralPursoseRegisterValue(0x6)).Returns(0x10);
            
            operand.Process(cpuStateManager.Object);

            cpuStateManager.Setup(m => m.ReadMemoryValueAtAddress(0x10));

            operand.Read(cpuStateManager.Object);

            cpuStateManager.VerifyAll();
        }