public void IsValidTest() { //Arrange Quest quest = QuestHelper.CreateQuest(); IQuestCommand beforeQuestCommanduestCommand = MockRepository.GenerateStrictMock <IQuestCommand>(); IQuestCommand afterQuestCommand = MockRepository.GenerateStrictMock <IQuestCommand>(); DownHierarchyQuestCommand command = new DownHierarchyQuestCommand(quest, beforeQuestCommanduestCommand, afterQuestCommand); //Act bool result = command.IsValid(); //Assert Assert.IsTrue(result); beforeQuestCommanduestCommand.VerifyAllExpectations(); afterQuestCommand.VerifyAllExpectations(); }