コード例 #1
0
        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).");
        }
コード例 #2
0
 public IEnumerator GetStreamMetaDataWithoutLogin()
 {
     yield return(AsyncTest.Execute(AsyncTest.ThrowsAsync <UnauthorizedAccessException> (manager.GetAllStreamMetaDataForUserAsync(StreamCallback))));
 }
コード例 #3
0
        public IEnumerator ConnectToInvalidServer()
        {
            manager.SetServerUrl("I am a wrong server URL");

            yield return(AsyncTest.Execute(AsyncTest.ThrowsAsync <InvalidOperationException> (manager.LoginAsync("email", "password", LoginCallback))));
        }
コード例 #4
0
 public IEnumerator LoginWithWrongEmailOrPassword()
 {
     yield return(AsyncTest.Execute(AsyncTest.ThrowsAsync <SpeckleException> (manager.LoginAsync("email", "password", LoginCallback))));
 }