public IEnumerator AddReceiverAndInitializeWithInvalidID() { Transform root = new GameObject().transform; yield return(AsyncTest.Execute(manager.LoginAsync(workingCredentials.email, workingCredentials.password, LoginCallback))); yield return(AsyncTest.Execute(AsyncTest.ThrowsAsync <SpeckleException> (manager.AddReceiverAsync("not valid stream ID", root, true)))); LogAssert.Expect(LogType.Error, "INTERNAL ERROR: The HTTP status code of the response was not expected (404)."); }
public IEnumerator GetStreamMetaDataWithoutLogin() { yield return(AsyncTest.Execute(AsyncTest.ThrowsAsync <UnauthorizedAccessException> (manager.GetAllStreamMetaDataForUserAsync(StreamCallback)))); }
public IEnumerator ConnectToInvalidServer() { manager.SetServerUrl("I am a wrong server URL"); yield return(AsyncTest.Execute(AsyncTest.ThrowsAsync <InvalidOperationException> (manager.LoginAsync("email", "password", LoginCallback)))); }
public IEnumerator LoginWithWrongEmailOrPassword() { yield return(AsyncTest.Execute(AsyncTest.ThrowsAsync <SpeckleException> (manager.LoginAsync("email", "password", LoginCallback)))); }