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"); }
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"); } }
public void TestNewMatch() { GameMatch.NewMatch("testgame"); }