public void Matches_NullCommand_Returns_False() { var mockRepository = new Mock <IUserRepository>(); var postingCommand = new PostingCommand(mockRepository.Object); bool result = postingCommand.Matches(null); Assert.IsFalse(result); }
public void Matches_PostCommand_Return_True() { var mockRepository = new Mock <IUserRepository>(); var postingCommand = new PostingCommand(mockRepository.Object); bool result = postingCommand.Matches(CommandLine); Assert.IsTrue(result); }