public void Movi() { var stream = new CodeStream(); stream.AsFluent() .Mov.RI(Register.A, 0); Assert.That(stream.First(), Is.EqualTo(new Instruction(OpCode.Mov).Destination(Register.A).Source(0)).Using(new InstructionComparer())); }
public void Movr() { var stream = new CodeStream(); stream.AsFluent() .Mov.RR(Register.A, Register.B); var expected = new Instruction(OpCode.Mov).Source(Register.B).Destination(Register.A); Assert.That(stream.First(), Is.EqualTo(expected).Using(new InstructionComparer())); }