public void Test_Common() { string prFile = TestUtils.PrepareTestFile("test_pathreplace.yaml"); fPathReplacer.Load(prFile); Assert.AreEqual("/home/path11/x.yyy", fPathReplacer.TryReplacePath(@"D:\path1\x.yyy", false)); }
public static void InitSettings() { Logger.LogInit(GetLogFilename()); Plugins.Load(AppHost.Instance, GKUtils.GetPluginsPath()); var options = GlobalOptions.Instance; options.LoadFromFile(GetAppDataPathStatic() + "GEDKeeper2.ini"); options.FindLanguages(); NamesTable.LoadFromFile(GetAppDataPathStatic() + "GEDKeeper2.nms"); PathReplacer.Load(GKUtils.GetAppPath() + "crossplatform.yaml"); // FIXME: path }