コード例 #1
0
        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);
            }
        }
コード例 #2
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);
            }
        }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
 public void TestSteamIDParser()
 {
     if (SteamUtil.FromSteamID("STEAM_0:0:131983088").ConvertToUInt64() == 76561198224231904)
     {
         Assert.True(true, "Steam ID parsing successfull");
     }
     else
     {
         Assert.True(false);
     }
 }
コード例 #5
0
ファイル: BanManagerTest.cs プロジェクト: ra1N1336/Titan
        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/
            }
        }
コード例 #6
0
ファイル: BanManagerTest.cs プロジェクト: ra1N1336/Titan
        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/
            }
        }
コード例 #7
0
ファイル: BanManagerTest.cs プロジェクト: ra1N1336/Titan
        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/
            }
        }