public void CommitTest()
        {
            //Arrange
            IQuestTree tree = MockRepository.GenerateStrictMock <IQuestTree>();

            UnloadChildrenQuestCommand command = new UnloadChildrenQuestCommand(tree);

            //Act
            bool result = command.Commit();

            //Assert
            Assert.IsTrue(result);

            tree.VerifyAllExpectations();
        }
        public void UndoTest()
        {
            //Arrange
            Quest quest = QuestHelper.CreateQuest();

            IQuestTree tree = MockRepository.GenerateStrictMock <IQuestTree>();

            tree.Expect(tr => tr.LoadChildren(Arg <Quest> .Is.Equal(quest))).Repeat.Once();

            UnloadChildrenQuestCommand command = new UnloadChildrenQuestCommand(tree);

            //Act
            bool result = command.Undo(quest);

            //Assert
            Assert.IsTrue(result);

            tree.VerifyAllExpectations();
        }