示例#1
0
 public void ViewCalendarMenuItem()
 {
     var t = new TaskPlugin();
     var m = t.CreateMainMenuItems()[0].DropDownItems;
     Assert.AreEqual("View Calendar", m[8].Text); //this order of menu item is required by Ribbon event handler
 }
示例#2
0
 public void OpenCalendar()
 {
     var t = new TaskPlugin();
     t.Initialize(new PluginManagerStub());
     t.OpenCalender();
 }
示例#3
0
 public void RemoveTaskMenuItem()
 {
     var t = new TaskPlugin();
     var m = t.CreateMainMenuItems()[0].DropDownItems;
     Assert.AreEqual("Remove Task", m[7].Text); //this order of menu item is required by Ribbon event handler
 }
示例#4
0
 public void DueNextQuarterMenuItem()
 {
     var t = new TaskPlugin();
     var m = t.CreateMainMenuItems()[0].DropDownItems;
     Assert.AreEqual("Next Quarter", m[5].Text); //this order of menu item is required by Ribbon event handler
 }