public void InvalidLogin(UUnitTestContext testContext) { // If the setup failed to log in a user, we need to create one. var request = new LoginWithEmailAddressRequest { Email = _userEmail, Password = "******", }; clientInstance.LoginWithEmailAddress(request, PlayFabUUnitUtils.ApiActionWrapper <LoginResult>(testContext, InvalidLoginCallback), PlayFabUUnitUtils.ApiActionWrapper <PlayFabError>(testContext, ExpectedLoginErrorCallback), testContext); }
public void InvalidLogin(UUnitTestContext testContext) { if (string.IsNullOrEmpty(_userEmail)) { testContext.Skip(); // We need additional information to attempt this test } // If the setup failed to log in a user, we need to create one. var request = new LoginWithEmailAddressRequest { Email = _userEmail, Password = "******", }; clientInstance.LoginWithEmailAddress(request, PlayFabUUnitUtils.ApiActionWrapper <LoginResult>(testContext, InvalidLoginCallback), PlayFabUUnitUtils.ApiActionWrapper <PlayFabError>(testContext, ExpectedLoginErrorCallback), testContext); }