Ejemplo n.º 1
0
        public void UT_getGrps()
        {
            var mh = new MH();
            var sr = new SR();

            if (boot.isTeklaActive)
            {
                mod.dir = TS.GetTeklaDir(TS.ModelDir.model);
            }
            else
            {
                mod.dir = boot.ModelDir;
            }

            mod.elements = sr.Raw(mod);
            string md5 = mod.getMD5(mod.elements);

            Assert.AreEqual(32, md5.Length);

            var grp = mh.getGrps(mod.elements);

            Assert.IsTrue(grp.Count > 0);
            string pricing_md5 = mod.get_pricingMD5(grp);

            Assert.AreEqual(32, pricing_md5.Length);

            FileOp.AppQuit();
        }
Ejemplo n.º 2
0
        public void UT_SetMod_native()
        {
            boot = new Boot(); boot.Init();
            var sr = new SR();

            model = sr.SetModel(boot);

            Assert.IsTrue(sr.CheckModelIntegrity(model));

            FileOp.AppQuit();
        }
Ejemplo n.º 3
0
        public int CompareTo(Model mod) { return mod.date.CompareTo(date); }    //to Sort Models by time

        public Model() { ts = new TS(); mh = new Handler.Handler(); sr = new SR(); }