public void ExpandMacro() { MacroRpushInstruction target = new MacroRpushInstruction(); String[] actual = target.ExpandMacro(new Label("LBL001")); String[] expected = TestUtils.MakeArray( ProgramLineTest.MakeGeneratedLine("LBL001", "PUSH", "0,GR1"), ProgramLineTest.MakeGeneratedLine("", "PUSH", "0,GR2"), ProgramLineTest.MakeGeneratedLine("", "PUSH", "0,GR3"), ProgramLineTest.MakeGeneratedLine("", "PUSH", "0,GR4"), ProgramLineTest.MakeGeneratedLine("", "PUSH", "0,GR5"), ProgramLineTest.MakeGeneratedLine("", "PUSH", "0,GR6"), ProgramLineTest.MakeGeneratedLine("", "PUSH", "0,GR7")); TestUtils.CheckEnumerable(expected, actual, "マクロ命令 RPUSH の展開結果"); }
private void CheckReadOperand(String text, Boolean success, String message) { MacroRpushInstruction target = new MacroRpushInstruction(); ProgramInstructionTest.CheckReadOperand(target, text, success, message); }