コード例 #1
0
        public void Account_achievements_specify_all_parameters_return_achievements()
        {
            var result = WGApplication.GetPlayerAchievements(new[] { accountId }, WGLanguageField.EN, null, null);

            if (result.Data != null && result.Data[0] != null && result.Data[0].Achievements.Count == 0)
            {
                Assert.Inconclusive("The selected player doesn't seem to have ANY achievements. This makes the test useless, you might want to select a different accountId.");
            }

            Assert.IsNotNull(result.Data);
            Assert.AreEqual(result.Status, "ok");
            Assert.IsTrue(result.Data[0].Achievements.Count > 0);
        }
コード例 #2
0
        public void Account_achievements_return_achievements()
        {
            var result = WGApplication.GetPlayerAchievements(accountId);

            if (result.Data != null && result.Data.Count == 0)
            {
                Assert.Inconclusive("The selected player doesn't seem to have ANY achievements. This makes the test useless, you might want to select a different accountId.");
            }

            Assert.IsNotNull(result.Data);
            Assert.AreEqual(result.Status, "ok");
            Assert.IsTrue(result.Data.Count > 0);
        }