Esempio n. 1
0
        public void ReadThrowsInvalidOperationException()
        {
            var cpuStateManager = new Mock<ICpuStateOperations>();
            var operand = new PushOperand();

            Assert.Throws<InvalidOperationException>(() => operand.Read(cpuStateManager.Object));
        }
 public void ToStringReturnsOperandStringRepresentation()
 {
     var operand = new PushOperand();
     Assert.That(operand.ToString(), Is.EqualTo("PUSH"));
 }