Exemple #1
0
 public static void CreateSessions(SolidTriviaGame game, int sessionCount)
 {
     for (var i = 0; i < sessionCount; i++)
     {
         game.CreateNewSession();
     }
 }
        public void CreateSession()
        {
            var session1 = game.CreateNewSession();
            var session2 = game.CreateNewSession();

            Assert.NotNull(session1.Id);
            Assert.NotNull(session2.Id);

            Assert.NotNull(session1.Players);
            Assert.NotNull(session2.Players);

            Assert.Equal(2, game.ActiveSessions());
        }
Exemple #3
0
 public SmsTests()
 {
     game    = new SolidTriviaGame();
     session = game.CreateNewSession();
 }
Exemple #4
0
 public SessionTests()
 {
     game    = new SolidTriviaGame();
     session = game.CreateNewSession();
     TestHelper.AddPlayers(game, session, 30);
 }