public void WriteExplicitInstruction() { var stream = new CodeStream { new Instruction(OpCode.Mov) }; Assert.That(stream.ToArray(), Is.Not.Empty); }
public void WriteInstruction() { var stream = new CodeStream(); var instruction = new Instruction(); stream.Add(instruction); Assert.That(stream.ToArray(), Is.EqualTo(new[] { instruction })); }
public void WriteMultipleInstruction() { var stream = new CodeStream(); var i1 = new Instruction(); var i2 = new Instruction(); stream.Add(i1, i2); Assert.That(stream.ToArray(), Is.EqualTo(new[] { i1, i2 })); }
public void WriteInstruction() { var stream =new CodeStream(); var instruction = new Instruction(); stream.Add(instruction); Assert.That(stream.ToArray(), Is.EqualTo(new[] { instruction })); }
public void WriteExplicitInstruction() { var stream =new CodeStream { new Instruction(OpCode.Mov) }; Assert.That(stream.ToArray(), Is.Not.Empty); }
public void WriteMultipleInstruction() { var stream =new CodeStream(); var i1 = new Instruction(); var i2 = new Instruction(); stream.Add(i1, i2); Assert.That(stream.ToArray(), Is.EqualTo(new[] { i1, i2 })); }