Exemplo n.º 1
0
        public override Test.Framework.TestResult Run()
        {
            DDS.ITopic topic;
            DDS.InconsistentTopicStatus status = new DDS.InconsistentTopicStatus();
            string expResult = "Topic status test succeeded";

            Test.Framework.TestResult result;
            DDS.ReturnCode            rc;
            result = new Test.Framework.TestResult(expResult, string.Empty, Test.Framework.TestVerdict.Pass,
                                                   Test.Framework.TestVerdict.Fail);
            topic = (DDS.ITopic) this.ResolveObject("topic");

            rc = topic.GetInconsistentTopicStatus(ref status);
            if (rc != DDS.ReturnCode.Ok)
            {
                result.Result = "InconsistentTopicStatus could not be resolved.";
                return(result);
            }
            if (status.TotalCount != 0)
            {
                result.Result = "InconsistentTopicStatus.TotalCount != 0.";
                return(result);
            }
            if (status.TotalCountChange != 0)
            {
                result.Result = "InconsistentTopicStatus.TotalCountChange != 0.";
                return(result);
            }
            result.Result  = expResult;
            result.Verdict = Test.Framework.TestVerdict.Pass;
            return(result);
        }
Exemplo n.º 2
0
        public override Test.Framework.TestResult Run()
        {
            DDS.ITopic topic;
            DDS.InconsistentTopicStatus status = new DDS.InconsistentTopicStatus();
            string expResult = "Topic status test succeeded";
            Test.Framework.TestResult result;
            DDS.ReturnCode rc;
            result = new Test.Framework.TestResult(expResult, string.Empty, Test.Framework.TestVerdict.Pass,
                Test.Framework.TestVerdict.Fail);
            topic = (DDS.ITopic)this.ResolveObject("topic");

            rc = topic.GetInconsistentTopicStatus(ref status);
            if (rc != DDS.ReturnCode.Ok)
            {
                result.Result = "InconsistentTopicStatus could not be resolved.";
                return result;
            }
            if (status.TotalCount != 0)
            {
                result.Result = "InconsistentTopicStatus.TotalCount != 0.";
                return result;
            }
            if (status.TotalCountChange != 0)
            {
                result.Result = "InconsistentTopicStatus.TotalCountChange != 0.";
                return result;
            }
            result.Result = expResult;
            result.Verdict = Test.Framework.TestVerdict.Pass;
            return result;
        }
 public override void Reset()
 {
     base.Reset();
     onOfferedDeadlineMissedCalled = false;
     odmStatus = new DDS.OfferedDeadlineMissedStatus();
     onOfferedIncompatibleQosCalled = false;
     oiqStatus = new DDS.OfferedIncompatibleQosStatus();
     onLivelinessLostCalled = false;
     llStatus = new DDS.LivelinessLostStatus();
     onPublicationMatchStatus = false;
     pmStatus = new DDS.PublicationMatchedStatus();
     onInconsistentTopicCalled = false;
     ictStatus = new DDS.InconsistentTopicStatus();
 }
Exemplo n.º 4
0
 public override void Reset()
 {
     base.Reset();
     onOfferedDeadlineMissedCalled = false;
     odmStatus = new DDS.OfferedDeadlineMissedStatus();
     onOfferedIncompatibleQosCalled = false;
     oiqStatus = new DDS.OfferedIncompatibleQosStatus();
     onLivelinessLostCalled = false;
     llStatus = new DDS.LivelinessLostStatus();
     onPublicationMatchStatus = false;
     pmStatus = new DDS.PublicationMatchedStatus();
     onInconsistentTopicCalled = false;
     ictStatus = new DDS.InconsistentTopicStatus();
 }
 void DDS.ITopicListener.OnInconsistentTopic(DDS.ITopic entityInterface, DDS.InconsistentTopicStatus status)
 {
     onInconsistentTopicCalled = true;
     ictStatus = status;
 }
Exemplo n.º 6
0
 void DDS.ITopicListener.OnInconsistentTopic(DDS.ITopic entityInterface, DDS.InconsistentTopicStatus status)
 {
     onInconsistentTopicCalled = true;
     ictStatus = status;
 }
 public virtual void On_inconsistent_topic(DDS.ITopic the_topic, DDS.InconsistentTopicStatus status)
 {
     onInconsistentTopicCalled = true;
     ictStatus = status;
 }
 public virtual void Reset()
 {
     onInconsistentTopicCalled = false;
     ictStatus = new DDS.InconsistentTopicStatus();
 }