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

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