Beispiel #1
0
        public void UT_ReadModObj()
        {
            var u = new _UT_Tekla();
            //var parts = u._ReadModObj();
            //Assert.IsTrue(parts.Count() > 0);
            //foreach (var p in parts)
            {
//                Assert.IsTrue(p.Key.Length > 15);
            }
        }
Beispiel #2
0
        public void UT_Read()
        {
            // test 1: just read Parts
            var      u  = new _UT_Tekla();
            DateTime t0 = DateTime.Now;

            u.Read();
            DateTime t1 = DateTime.Now;
            string   dt = (t1 - t0).ToString();

            Assert.AreEqual(u.elementsCount(), u.dicPartsCnt());
            Assert.IsTrue(u.dicPartsCnt() > 0);
            // test 2: read embeds - Class 100 and class 101
            int c100 = u.Class100cnt("100");
            int c101 = u.Class100cnt("101");

            u.GrClass();    // Grouping Embeds by Class - not in use
        }