private ScriptBasedMapping CreateMapping(Configuration conf) { ScriptBasedMapping mapping = new ScriptBasedMapping(); mapping.SetConf(conf); return(mapping); }
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 ()); }