Beispiel #1
0
        public override void ClassSetUp()
        {
#if !UNITY_WSA && !UNITY_WP8
            PlayFabWebRequest.SkipCertificateValidation(); // Internal testing doesn't have a good answer for this yet
#endif

            clientInstance.ForgetAllCredentials();
            PlayFabSettings.staticPlayer.ForgetAllCredentials();

            testTitleData          = TestTitleDataLoader.LoadTestTitleData();
            _userEmail             = testTitleData.userEmail;
            clientSettings.TitleId = testTitleData.titleId;
            if (testTitleData.extraHeaders != null)
            {
                foreach (var pair in testTitleData.extraHeaders)
                {
                    PlayFabHttp.GlobalHeaderInjection[pair.Key] = pair.Value;
                }
            }
        }
Beispiel #2
0
        public override void SetUp(UUnitTestContext testContext)
        {
#if !UNITY_WSA && !UNITY_WP8
            PlayFabWebRequest.SkipCertificateValidation(); // Internal testing doesn't have a good answer for this yet
#endif
            testTitleData = TestTitleDataLoader.LoadTestTitleData();
            _userEmail    = testTitleData.userEmail;

            // Verify all the inputs won't cause crashes in the tests
            var titleInfoSet = !string.IsNullOrEmpty(PlayFabSettings.TitleId) && !string.IsNullOrEmpty(_userEmail);
            if (!titleInfoSet)
            {
                testContext.Skip(); // We cannot do client tests if the titleId is not given
            }
            if (testTitleData.extraHeaders != null)
            {
                foreach (var pair in testTitleData.extraHeaders)
                {
                    PlayFabHttp.GlobalHeaderInjection[pair.Key] = pair.Value;
                }
            }
        }