public void TestMissingGame() { var parser = new SteamGameParser(this._cache); var info = parser.GetInfo("test.xhtml"); Assert.IsNull(info); }
public void TestCounterstrike() { var parser = new SteamGameParser(_cache); var info = parser.GetInfo("10"); Assert.AreEqual(info.Name, "Counter-Strike"); Assert.AreEqual(1, info.Features.Length); Assert.AreEqual("Multi-player", info.Features[0]); Assert.IsNull(info.Genres); Assert.AreEqual(new Uri("http://cdn.steampowered.com/v/gfx/apps/10/header_292x136.jpg?t=1287184193"), info.IconUrl); }
public void TestDroplitz() { var parser = new SteamGameParser(this._cache); var info = parser.GetInfo("23120"); Assert.AreEqual(info.Name, "Droplitz"); Assert.AreEqual(3, info.Features.Length); Assert.AreEqual("Single-player", info.Features[0]); Assert.AreEqual("Steam Achievements", info.Features[1]); Assert.AreEqual("Steam Leaderboards", info.Features[2]); Assert.AreEqual(2, info.Genres.Length); Assert.AreEqual("Casual", info.Genres[0]); Assert.AreEqual("Strategy", info.Genres[1]); }