public void Mb_Create() { StringWriter sb = new StringWriter(); MenuBuilder mb = new FakeMenuBuilder(sb); mb.AddMenuItem("&Hello", new CommandID(CommandGroup.Decompiler, CmdID.NextPhase)); mb.AddMenuItem("&Goodbye", new CommandID(CommandGroup.Decompiler, CmdID.FinishPhases)); string exp = @"&Hello" + nl + @"&Goodbye" + nl; Assert.AreEqual(exp, sb.ToString()); }
public void Mb_Create() { StringWriter sb = new StringWriter(); MenuBuilder mb = new FakeMenuBuilder(sb); mb.AddMenuItem("&Hello", new CommandID(CommandGroup.Decompiler, CmdID.NextPhase)); mb.AddMenuItem("&Goodbye", new CommandID(CommandGroup.Decompiler, CmdID.FinishPhases)); string exp = @"&Hello" + nl + @"&Goodbye" + nl; Assert.AreEqual(exp, sb.ToString()); }