public virtual void TestCachingRelaysStringOperationsToNullScript()
        {
            Configuration      conf          = new Configuration();
            ScriptBasedMapping scriptMapping = new ScriptBasedMapping(conf);

            Assert.True("Did not find " + ScriptBasedMapping.NoScript + " in "
                        + scriptMapping, scriptMapping.ToString().Contains(ScriptBasedMapping.NoScript)
                        );
            CachedDNSToSwitchMapping mapping = new CachedDNSToSwitchMapping(scriptMapping);

            Assert.True("Did not find " + ScriptBasedMapping.NoScript + " in "
                        + mapping, mapping.ToString().Contains(ScriptBasedMapping.NoScript));
        }
        public virtual void TestCachingRelaysStringOperations()
        {
            Configuration conf       = new Configuration();
            string        scriptname = "mappingscript.sh";

            conf.Set(CommonConfigurationKeys.NetTopologyScriptFileNameKey, scriptname);
            ScriptBasedMapping scriptMapping = new ScriptBasedMapping(conf);

            Assert.True("Did not find " + scriptname + " in " + scriptMapping
                        , scriptMapping.ToString().Contains(scriptname));
            CachedDNSToSwitchMapping mapping = new CachedDNSToSwitchMapping(scriptMapping);

            Assert.True("Did not find " + scriptname + " in " + mapping, mapping
                        .ToString().Contains(scriptname));
        }