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