Inheritance: PlayFab.SharedModels.PlayFabResultCommon
Beispiel #1
0
        private void AcctInfoCallback(GetAccountInfoResult result)
        {
            bool enumCorrect = (result.AccountInfo != null
                && result.AccountInfo.TitleInfo != null
                && result.AccountInfo.TitleInfo.Origination != null
                && Enum.IsDefined(typeof(UserOrigination), result.AccountInfo.TitleInfo.Origination.Value));

            var testContext = (UUnitTestContext)result.CustomData;
            testContext.True(enumCorrect, "Enum value does not match expected options");
            testContext.EndTest(UUnitFinishState.PASSED, null);
        }
        private void AcctInfoCallback(GetAccountInfoResult result)
        {
            if (result.AccountInfo == null || result.AccountInfo.TitleInfo == null || result.AccountInfo.TitleInfo.Origination == null
            || !Enum.IsDefined(typeof(UserOrigination), result.AccountInfo.TitleInfo.Origination.Value))
            {
                lastReceivedMessage = "Enums not properly tested";
                return;
            }

            lastReceivedMessage = "Enums tested";
        }