public void GeoTrackerClientSettings_ConfigDefault() { try { Config.SetConfig(string.Empty); var settings = GeoTrackerClientSettings.LoadConfig("Test"); Assert.AreEqual("logical://LillTek/GeoTracker/Server", settings.ServerEP); } finally { Config.SetConfig(null); } }
public void GeoTrackerClientSettings_ConfigSettings() { string cfg = @" §ion Test ServerEP = logical://foo/bar &endsection "; try { Config.SetConfig(cfg.Replace('&', '#')); var settings = GeoTrackerClientSettings.LoadConfig("Test"); Assert.AreEqual("logical://foo/bar", settings.ServerEP); } finally { Config.SetConfig(null); } }
public void GeoTrackerClientSettings_Default() { var settings = new GeoTrackerClientSettings(); Assert.AreEqual("logical://LillTek/GeoTracker/Server", settings.ServerEP); }