public void UserFeedback_ValidStringReturned()
        {
            ICommand linkCommand = new CreateLinkXpCommand("path", "path", null);
            String feedback = linkCommand.UserFeedback;

            Assert.IsFalse(String.IsNullOrEmpty(feedback));
        }
        public void Execute_ValidValues_LinkCreated()
        {
            var junctionPoint = MockRepository.GenerateMock<IJunctionPointXp>();

            String linkTo = "path1";
            String linkFrom = "path2";

            ICommand linkCommand = new CreateLinkXpCommand(linkTo, linkFrom, junctionPoint);
            linkCommand.Execute();

            junctionPoint.AssertWasCalled(j => j.Create(linkTo, linkFrom));
        }
 public void Undo_DoesNothing()
 {
     ICommand linkCommand = new CreateLinkXpCommand(null, null, null);
     Assert.DoesNotThrow(() => linkCommand.Undo());
 }