예제 #1
0
        public void TestClearDataPoints01()
        {
            OPCDataPointManager oPCDataPointManager           = OPCDataPointManager.GetInstance();
            Accessor            oPCDataPointManagerAccessor   = ReflectionAccessor.Wrap(oPCDataPointManager);
            Dictionary <string, OPCDPGrpDetails> dataPointdic = new Dictionary <string, OPCDPGrpDetails>();

            dataPointdic.Add("Datapoint1.Value", new OPCDPGrpDetails());
            oPCDataPointManagerAccessor.SetField("m_DataPointdic", dataPointdic);
            oPCDataPointManager.ClearDataPoints();
            //Post test condition check
            Assert.AreEqual(0, oPCDataPointManagerAccessor.GetFieldAccessor("m_DataPointdic").GetProperty("Count"));
        }