private ScriptBasedMappingWithDependency CreateMapping(Configuration conf)
        {
            ScriptBasedMappingWithDependency mapping = new ScriptBasedMappingWithDependency();

            mapping.SetConf(conf);
            return(mapping);
        }
        public virtual void TestNoArgsMeansNoResult()
        {
            Configuration conf = new Configuration();

            conf.SetInt(ScriptBasedMapping.ScriptArgCountKey, ScriptBasedMapping.MinAllowableArgs
                        - 1);
            conf.Set(ScriptBasedMapping.ScriptFilenameKey, "any-filename-1");
            conf.Set(ScriptBasedMappingWithDependency.DependencyScriptFilenameKey, "any-filename-2"
                     );
            conf.SetInt(ScriptBasedMapping.ScriptArgCountKey, 10);
            ScriptBasedMappingWithDependency mapping = CreateMapping(conf);
            IList <string> names = new AList <string>();

            names.AddItem("some.machine.name");
            names.AddItem("other.machine.name");
            IList <string> result = mapping.Resolve(names);

            NUnit.Framework.Assert.IsNull("Expected an empty list for resolve", result);
            result = mapping.GetDependency("some.machine.name");
            NUnit.Framework.Assert.IsNull("Expected an empty list for getDependency", result);
        }