コード例 #1
0
        public void TreeTestLazy()
        {
            var root = new RegDataLazy()
            {
                _name = regroot
            };

            root.Fillit();
            //            Assert.IsTrue(RegData._cnt > 350, "count = {0}", RegData._cnt);


            var zz = (RegDataLazy)Activator.CreateInstance(root.GetType());



            using (var mfd = new MapFileDict <int, RegDataLazy>())
            {
                mfd[1] = root;
                var ret = mfd[1];
                Assert.IsTrue(ret.CompareTo(root) == 0, "not equal! #items= {0}", RegDataLazy._cnt);
            }
            Assert.IsTrue(false, "Count = {0}", RegDataLazy._cnt);
        }