public void TournamentResultsCompactReturnsNullIfNoTournamentsHaveTakenPlace() { TournamentResultsData.Clear(); var command = TournamentModule.Commands.Where(x => x.Name.Equals("TournamentResults")).FirstOrDefault(); var results = command.CompactExecutor("", UserLookup.GetId("Buzz")); Assert.IsNull(results); }
public void TournamentResultsGetsErrorMessageWhenNoTournamentHasCompleted() { TournamentResultsData.Clear(); var command = TournamentModule.Commands.Where(x => x.Name.Equals("TournamentResults")).FirstOrDefault(); var results = command.Executor("", UserLookup.GetId("Foo")); Assert.IsNotNull(results.Responses); Assert.AreEqual(1, results.Responses.Count); }