示例#1
0
        private ScriptBasedMapping CreateMapping(Configuration conf)
        {
            ScriptBasedMapping mapping = new ScriptBasedMapping();

            mapping.SetConf(conf);
            return(mapping);
        }
示例#2
0
        public virtual void TestFilenameMeansMultiSwitch()
        {
            Configuration conf = new Configuration();

            conf.Set(ScriptBasedMapping.ScriptFilenameKey, "any-filename");
            ScriptBasedMapping mapping = CreateMapping(conf);

            NUnit.Framework.Assert.IsFalse("Expected to be multi switch", mapping.IsSingleSwitch
                                               ());
            mapping.SetConf(new Configuration());
            Assert.True("Expected to be single switch", mapping.IsSingleSwitch
                            ());
        }