Example #1
0
        public void UT_Hndl()
        {
            var boot  = new Boot();
            var model = new Mod();

            model.SetModel(boot);

            var mh = new ModHandler();

            mh.Hndl(model);
            int cnt = 0;

            foreach (var gr in model.elmGroups)
            {
                cnt += gr.guids.Count();
            }
            Assert.AreEqual(model.elements.Count(), cnt);

            //Hndl performance test -- 180 sec for 100 cycles
            DateTime t0 = DateTime.Now;

            for (int i = 0; i < 100; i++)
            {
                mh.Hndl(model);
            }
            TimeSpan ts = DateTime.Now - t0;

            Assert.IsTrue(ts.TotalSeconds > 0.0);
        }
Example #2
0
        public void UT_ModHandler_geGroup_Native()
        {
            var boot  = new Boot();
            var model = new Mod();

            model.SetModel(boot);
        }
Example #3
0
        public void UT_Pricing()
        {
            var boot  = new Boot();
            var model = new Mod();

            model.SetModel(boot);

            var mh = new ModHandler();

            mh.Pricing(ref model);
            Assert.IsTrue(model.matches.Count > 0);
        }