コード例 #1
0
 public IEnumerator Start()
 {
     CommonIntergrationTests common = new CommonIntergrationTests ();
     yield return StartCoroutine(common.DoSubscribeThenPublishAndParse(SslOn, this.name, AsObject, CipherOn, Message, "[1.2]", true));
     UnityEngine.Debug.Log (string.Format("{0}: After StartCoroutine", this.name));
     yield return new WaitForSeconds (CommonIntergrationTests.WaitTimeBetweenCalls);
 }
コード例 #2
0
ファイル: TestSubscribeLong.cs プロジェクト: eval01-tts/unity
 public IEnumerator Start()
 {
     CommonIntergrationTests common = new CommonIntergrationTests ();
     //we are converting long to string due to JSON issue
     yield return StartCoroutine(common.DoSubscribeThenPublishAndParse(SslOn, this.name, AsObject, CipherOn, Message, "14255515120803306", true));
     UnityEngine.Debug.Log (string.Format("{0}: After StartCoroutine", this.name));
     yield return new WaitForSeconds (CommonIntergrationTests.WaitTimeBetweenCalls);
 }
コード例 #3
0
        public IEnumerator Start()
        {
            CommonIntergrationTests common = new CommonIntergrationTests();

            yield return(StartCoroutine(common.DoSubscribeThenPublishAndParse(SslOn, this.name, AsObject, CipherOn, Message, "[\"14255515120803306\"]", true)));

            UnityEngine.Debug.Log(string.Format("{0}: After StartCoroutine", this.name));
            yield return(new WaitForSeconds(CommonIntergrationTests.WaitTimeBetweenCalls));
        }
コード例 #4
0
 public IEnumerator Start()
 {
     if (CommonIntergrationTests.TestingUsingMiniJSON) {
         UnityEngine.Debug.Log (string.Format ("{0}: Ignored for MiniJSON", this.name));
         IntegrationTest.Pass ();
     } else {
         object Message = new PubnubDemoObject ();
         CommonIntergrationTests common = new CommonIntergrationTests ();
         yield return StartCoroutine (common.DoSubscribeThenPublishAndParse (SslOn, this.name, AsObject, CipherOn, Message, "\"VersionID\":3.4", true));
         UnityEngine.Debug.Log (string.Format ("{0}: After StartCoroutine", this.name));
         yield return new WaitForSeconds (CommonIntergrationTests.WaitTimeBetweenCalls);
     }
 }
コード例 #5
0
        public IEnumerator Start()
        {
                        #if !PUBNUB_PS_V2_RESPONSE
            CommonIntergrationTests common = new CommonIntergrationTests();
            yield return(StartCoroutine(common.DoSubscribeThenPublishAndParse(SslOn, this.name, AsObject, CipherOn, Message, "1", false)));

            UnityEngine.Debug.Log(string.Format("{0}: After StartCoroutine", this.name));
            yield return(new WaitForSeconds(CommonIntergrationTests.WaitTimeBetweenCalls));
                        #else
            yield return(null);

            UnityEngine.Debug.Log(string.Format("{0}: Ignoring test", this.name));
            IntegrationTest.Pass();
                        #endif
        }
コード例 #6
0
        public IEnumerator Start()
        {
            if (CommonIntergrationTests.TestingUsingMiniJSON)
            {
                UnityEngine.Debug.Log(string.Format("{0}: Ignored for MiniJSON", this.name));
                IntegrationTest.Pass();
            }
            else
            {
                object Message = new PubnubDemoObject();
                CommonIntergrationTests common = new CommonIntergrationTests();
                yield return(StartCoroutine(common.DoSubscribeThenPublishAndParse(SslOn, this.name, AsObject, CipherOn, Message, "\"VersionID\":3.4", true)));

                UnityEngine.Debug.Log(string.Format("{0}: After StartCoroutine", this.name));
                yield return(new WaitForSeconds(CommonIntergrationTests.WaitTimeBetweenCalls));
            }
        }
コード例 #7
0
        public IEnumerator Start()
        {
            #if !PUBNUB_PS_V2_RESPONSE
            Dictionary <string, long>   Message1 = new Dictionary <string, long>();
            Dictionary <string, string> Message2 = new Dictionary <string, string>();
            object Message = null;
            if (BothString)
            {
                Message2.Add("cat", "test");
                Message = Message2;
            }
            else
            {
                Message1.Add("cat", 14255515120803306);
                Message = Message1;
            }

            string expectedMessage = "\"cat\":\"14255515120803306\"";
            if (BothString)
            {
                expectedMessage = "\"cat\":\"test\"";
            }
            else
            {
                if (CommonIntergrationTests.TestingUsingMiniJSON)
                {
                    expectedMessage = "\"cat\":14255515120803306";
                }
            }
            CommonIntergrationTests common = new CommonIntergrationTests();
            yield return(StartCoroutine(common.DoSubscribeThenPublishAndParse(SslOn, this.name, AsObject, CipherOn, Message, expectedMessage, true)));

            UnityEngine.Debug.Log(string.Format("{0}: After StartCoroutine", this.name));
            yield return(new WaitForSeconds(CommonIntergrationTests.WaitTimeBetweenCalls));
            #else
            yield return(null);

            UnityEngine.Debug.Log(string.Format("{0}: Ignoring test", this.name));
            IntegrationTest.Pass();
            #endif
        }