예제 #1
0
        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);
        }
예제 #2
0
        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);
        }