public void TestCleanHistory() { Skip.If(_handle.GetKey() == null, "No valid Steam Web API key has been provided with this test case."); if (_handle.RequestBanInfo(SteamUtil.FromSteamID("STEAM_0:0:131983088"), out var banInfo)) { Assert.True(!banInfo.VacBanned && banInfo.GameBanCount <= 0); } }
public void TestVacBan() { Skip.If(_handle.GetKey() == null, "No valid Steam Web API key has been provided with this test case."); if (_handle.RequestBanInfo(SteamUtil.FromSteamID("STEAM_0:0:19877565"), out var banInfo)) { Assert.True(banInfo.VacBanned); } }
public void TestGameBan() { Skip.If(_handle.GetKey() == null, "No valid Steam Web API key has been provided with this test case."); if (_handle.RequestBanInfo(SteamUtil.FromSteamID("STEAM_0:0:208017504"), out var banInfo)) { Assert.True(banInfo.GameBanCount > 0); } }
public void TestSteamIDParser() { if (SteamUtil.FromSteamID("STEAM_0:0:131983088").ConvertToUInt64() == 76561198224231904) { Assert.True(true, "Steam ID parsing successfull"); } else { Assert.True(false); } }
public void TestCleanHistory() { if (WebAPIKeyResolver.APIKey != null) { var banInfo = _banManager.GetBanInfoFor(SteamUtil.FromSteamID("STEAM_0:0:131983088")); if (banInfo != null && (!banInfo.VacBanned && banInfo.GameBanCount <= 0)) { Assert.True(true, "Marc3842h has no bans on record."); } else { Assert.True(false); } // STEAM_0:0:131983088 // https://steamcommunity.com/id/Marc3842h/ } }
public void TestVacBan() { if (WebAPIKeyResolver.APIKey != null) { var banInfo = _banManager.GetBanInfoFor(SteamUtil.FromSteamID("STEAM_0:0:19877565")); if (banInfo != null && banInfo.VacBanned) { Assert.True(true, "KQLY has VAC bans on record."); } else { Assert.True(false); } // STEAM_0:0:19877565 // https://steamcommunity.com/id/kqly/ } }
public void TestGameBan() { if (WebAPIKeyResolver.APIKey != null) { var banInfo = _banManager.GetBanInfoFor(SteamUtil.FromSteamID("STEAM_0:0:208017504")); if (banInfo != null && banInfo.GameBanCount > 0) { Assert.True(true, "topkektux has game bans on record."); } else { Assert.True(false); } // STEAM_0:0:208017504 // https://steamcommunity.com/id/TopKekTux/ } }