public void GetSteamUsersTest() { var steamLib = new SteamLibrary(); var users = steamLib.GetSteamUsers(); CollectionAssert.IsNotEmpty(users); var user = users.First(); Assert.IsFalse(string.IsNullOrEmpty(user.AccountName)); Assert.IsFalse(string.IsNullOrEmpty(user.PersonaName)); }
public void GetCategorizedGamesTest() { var steamLib = new SteamLibrary(); var user = steamLib.GetSteamUsers().First(a => a.Recent); var cats = steamLib.GetCategorizedGames(user.Id); var game = cats.First(); CollectionAssert.IsNotEmpty(cats); CollectionAssert.IsNotEmpty(game.Categories); Assert.IsFalse(string.IsNullOrEmpty(game.ProviderId)); Assert.AreEqual(game.Provider, Provider.Steam); }