public void TestCheckWithServerTimeout() { var errors = new LoginServiceException[] { TestCheckExpectError("expect-timeout", "valid-key", false) }.Where(x => x != null); Assert.AreEqual(errors.Count(), 1); }
public void TestLoginProcessWithServerTimeout() { var errors = new LoginServiceException[] { TestLoginProcessExpectError("expect-timeout", "valid-data"), }.Where(x => x != null); Assert.AreEqual(errors.Count(), 1); }
public void TestLoginProcessWithServerResponseError() { var errors = new LoginServiceException[] { TestLoginProcessExpectError("expect-invalid-json", "valid-data", "valid-iv"), }.Where(x => x != null); Assert.AreEqual(errors.Count(), 1); }
public void TestCheckWithInvalidSession() { var errors = new LoginServiceException[] { TestCheckExpectError("expect-60011", "valid-key", true), TestCheckExpectError("expect-60012", "valid-key", true) }.Where(x => x != null); Assert.AreEqual(errors.Count(), 2); }
public void TestCheckWithInvalidIdOrSkey() { var errors = new LoginServiceException[] { TestCheckExpectError("invalid-id", "valid-key", false), TestCheckExpectError("valid-id", "invalid-key", false) }.Where(x => x != null); Assert.AreEqual(errors.Count(), 2); }
public void TestLoginProcessWithInvalidCodeOrData() { var errors = new LoginServiceException[] { TestLoginProcessExpectError("invalid-code", "valid-data"), TestLoginProcessExpectError("valid-code", "invalid-data") }.Where(x => x != null); Assert.AreEqual(errors.Count(), 2); }