Example #1
0
        public void nm_dr_01()
        {
            ModuleController _mc = new ModuleController ();

            _mc.SearchPath.Add ("data/nm-dr");

            // This will look for a specific version of nm-dr-01b
            _mc.LoadModule ("nm-dr-01a");

            // If it worked, we should have a domain for nm-dr-01b
            Assert.IsTrue (_mc.IsLoaded ("nm-dr-01a"));
            Assert.IsTrue (_mc.IsLoaded ("nm-dr-01b"));
        }
Example #2
0
        public void nm_ur_01()
        {
            ModuleController _mc = new ModuleController ();

            _mc.SearchPath.Add ("data/nm-ur");

            UnresolvedDependencyException e = null;
            // This will look for a specific version of nm-ur-01b
            try {
                _mc.LoadModule ("nm-ur-01a");
            } catch (UnresolvedDependencyException exc) {
                e = exc;
            }

            Assert.IsFalse (_mc.IsLoaded ("nm-ur-01a"), "nm-ur-01a is loaded, it should not be.");
            Assert.IsFalse (_mc.IsLoaded ("nm-ur-01b"), "nm-ur-01a is loaded, it should not be.");
            Assert.IsFalse (_mc.IsLoaded ("nm-ur-01c"), "nm-ur-01a is loaded, it should not be.");
            Assert.IsFalse (_mc.IsLoaded ("nm-ur-01d"), "nm-ur-01a is loaded, it should not be.");
            Assert.IsFalse (_mc.IsLoaded ("nm-ur-01e"), "nm-ur-01a is loaded, it should not be.");
            Assert.IsFalse (_mc.IsLoaded ("nm-ur-01f"), "nm-ur-01a is loaded, it should not be.");
            Assert.IsFalse (_mc.IsLoaded ("nm-ur-01g"), "nm-ur-01a is loaded, it should not be.");

            if (e != null)
                throw e;
        }
Example #3
0
        public void nm_dr_14()
        {
            ModuleController _mc = new ModuleController ();

            _mc.SearchPath.Add ("data/nm-dr");

            _mc.LoadModule ("nm-dr-14a");

            Assert.IsTrue (_mc.IsLoaded ("nm-dr-14a"));
            Assert.IsTrue (_mc.IsLoaded ("nm-dr-14b"));
            Assert.IsTrue (_mc.IsLoaded ("nm-dr-14c"));
            Assert.IsFalse (_mc.IsLoaded ("nm-dr-14d"));
        }
Example #4
0
        public void nm_dr_08()
        {
            ModuleController _mc = new ModuleController ();

            _mc.SearchPath.Add ("data/nm-dr");

            _mc.LoadModule ("nm-dr-08a");

            Assert.IsTrue (_mc.IsLoaded ("nm-dr-08a"));
            Assert.IsTrue (_mc.IsLoaded ("nm-dr-08b"));
            Assert.IsTrue (_mc.IsLoaded ("nm-dr-08c"));
        }