public void NamedActionsReturnsBothActions()
        {
            var actionInstantiator = this.mocks.StrictMock<IActionInstantiator>();
            var action = this.mocks.StrictMock<ICruiseAction>();
            SetupResult.For(actionInstantiator.InstantiateAction(typeof(ProjectTimelineAction)))
                .Return(action);

            this.mocks.ReplayAll();
            var plugin = new ProjectTimelinePlugin(actionInstantiator);
            var actions = plugin.NamedActions;

            this.mocks.VerifyAll();
            Assert.AreEqual(2, actions.Length);
            Assert.IsInstanceOf<ImmutableNamedAction>(actions[0]);
            Assert.AreEqual(ProjectTimelineAction.TimelineActionName, actions[0].ActionName);
            Assert.AreSame(action, actions[0].Action);
            Assert.IsInstanceOf<ImmutableNamedAction>(actions[1]);
            Assert.AreEqual(ProjectTimelineAction.DataActionName, actions[1].ActionName);
            Assert.AreSame(action, actions[1].Action);
        }
 public void DescriptionIsCorrect()
 {
     var plugin = new ProjectTimelinePlugin(null);
     Assert.AreEqual("Project Timeline", plugin.LinkDescription);
 }