Exemple #1
0
        public void set_up()
        {
            // sick creating of dependency checker
            IEnumerable <ModuleInfo> outter = new List <ModuleInfo>();

            DependencyChecker.Setup(
                x =>
                x.CheckModules(It.IsAny <IEnumerable <ModuleInfo> >(),
                               It.IsAny <IEnumerable <ModuleInfo> >(),
                               out outter))
            .Returns(true);

            ModuleFinder
            .Setup(x => x.FindDirectoryForPackage(It.IsAny <string>(), It.IsAny <ModulePackage>()))
            .Returns <string, ModulePackage>((dict, package) => dict);
        }
Exemple #2
0
        public void set_up()
        {
            _moduleName = "test_module.dll";
            var moduleVersion = new Nomad.Utils.Version("0.1.1.0");

            _moduleManifest = new ModuleManifest {
                ModuleName = _moduleName, ModuleVersion = moduleVersion
            };

            // sick creating of dependency checker
            IEnumerable <ModuleInfo> outter = new List <ModuleInfo>();

            DependencyChecker.Setup(
                x =>
                x.CheckModules(It.IsAny <IEnumerable <ModuleInfo> >(),
                               It.IsAny <IEnumerable <ModuleInfo> >(),
                               out outter))
            .Returns(true);
        }