Пример #1
0
        public void TestJoinGame()
        {
            GameMatch.NewMatch("testgame");
            var match = GameMatch.ById("testgame");

            match.ImageSearch("monkey");

            Assert.IsTrue(match.Images.Count > 0, "Some image should be found");
        }
Пример #2
0
        public void TestListGame()
        {
            GameMatch.NewMatch("testgame2");

            var list = GameMatch.AllOpenMatch().ToList();

            Assert.IsTrue(list.Count > 0, "Some Game should be found");

            var match = GameMatch.ById("testgame");;

            foreach (var item in GameMatch.AllOpenMatch())
            {
                Assert.IsTrue(item.GameId.StartsWith("testgame"), "Wrong Game Title");
            }
        }
Пример #3
0
 public void TestNewMatch()
 {
     GameMatch.NewMatch("testgame");
 }