public void TestExpressions() { VirtualMachine vm = new VirtualMachine(); List <byte> actual = new GetVarInstruction() .Id(new LiteralInstruction(_id)) .ToInstructions(); TestHelper.AssertResultsEqual(_expected, actual); }
public void TestNoId() { VirtualMachine vm = new VirtualMachine(); _expected = new List <byte>() { (byte)InstructionsEnum.GetVar }; List <byte> actual = new GetVarInstruction() .ToInstructions(); TestHelper.AssertResultsEqual(_expected, actual); }