Ejemplo n.º 1
0
        public override IEnumerator RunTest()
        {
            m_Client     = new TopicClient();
            m_BlackBoard = new BlackBoard(m_Client);

            if (m_Client.IsActive)
            {
                m_Client.Disconnect();
                while (m_Client.IsActive)
                {
                    yield return(null);
                }
            }

            m_Client.StateChangedEvent += OnStateChanged;

            m_Client.Connect();

            while (!m_bSubscribeTested)
            {
                yield return(null);
            }

            Log.Debug("TestBlackBoard", "Tested Subscription now disconnecting");
            m_Client.Disconnect();

            while (!m_ConnectionClosed)
            {
                yield return(null);
            }

            m_Client.StateChangedEvent -= OnStateChanged;

            yield break;
        }
Ejemplo n.º 2
0
        public override IEnumerator RunTest()
        {
            TopicClient client = TopicClient.Instance;

            if (client.IsActive)
            {
                client.Disconnect();
                while (client.IsActive)
                {
                    yield return(null);
                }
            }

            client.Connect();

            m_Explorer.OnNodeAdded    += OnNodeAdded;
            m_Explorer.OnNodeRemoved  += OnNodeRemoved;
            m_Explorer.OnNodeReady    += OnNodeReady;
            m_Explorer.OnExplorerDone += OnExploreDone;

            m_Explorer.Explore();
            while (!m_bExplorerTested)
            {
                yield return(null);
            }

            yield break;
        }
Ejemplo n.º 3
0
        public override IEnumerator RunTest()
        {
            TopicClient client = TopicClient.Instance;

            if (client.IsActive)
            {
                client.Disconnect();
                while (client.IsActive)
                {
                    yield return(null);
                }
            }

            client.StateChangedEvent += OnStateChanged;

            client.Connect();
            while (!m_bQueryTested)
            {
                yield return(null);
            }
            while (!m_bSubscribeBinaryTested)
            {
                yield return(null);
            }
            while (!m_bSubscribeTextTested)
            {
                yield return(null);
            }
            while (!m_bSubFailedTested)
            {
                yield return(null);
            }

            client.StateChangedEvent -= OnStateChanged;

            yield break;
        }
Ejemplo n.º 4
0
        public override IEnumerator RunTest()
        {
            m_TopicClient = new TopicClient();
            if (m_TopicClient.IsActive)
            {
                m_TopicClient.Disconnect();
                while (m_TopicClient.IsActive)
                {
                    yield return(null);
                }
            }

            m_TopicClient.StateChangedEvent += OnStateChanged;

            m_TopicClient.Connect();
            while (!m_bQueryTested)
            {
                yield return(null);
            }
            while (!m_bSubscribeBinaryTested)
            {
                yield return(null);
            }
            while (!m_bSubscribeTextTested)
            {
                yield return(null);
            }
            while (!m_bSubFailedTested)
            {
                yield return(null);
            }

            m_TopicClient.StateChangedEvent -= OnStateChanged;

            yield break;
        }