Beispiel #1
0
		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());

		}
Beispiel #2
0
        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());
        }