From a34d0c6528aa6713d67b00b82e6f9a79aa2fab5c Mon Sep 17 00:00:00 2001 From: ManlyMarco Date: Wed, 18 Sep 2019 18:04:07 +0200 Subject: [PATCH] Fix UnescapedPathString test --- BepInExTests/Configuration/ConfigFileTests.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BepInExTests/Configuration/ConfigFileTests.cs b/BepInExTests/Configuration/ConfigFileTests.cs index e474130..855336e 100644 --- a/BepInExTests/Configuration/ConfigFileTests.cs +++ b/BepInExTests/Configuration/ConfigFileTests.cs @@ -298,6 +298,7 @@ namespace BepInEx.Configuration.Tests public void UnescapedPathString() { var c = MakeConfig(); + var w = c.AddSetting("Cat", "Key", "", new ConfigDescription("Test")); var unescaped = @"D:\test\p ath"; foreach (string testVal in new[] { unescaped, @"D:\\test\\p ath" }) @@ -305,8 +306,6 @@ namespace BepInEx.Configuration.Tests File.WriteAllText(c.ConfigFilePath, $"[Cat]\n# Test\nKey={testVal}\n"); c.Reload(); - var w = c.AddSetting("Cat", "Key", "", new ConfigDescription("Test")); - Assert.AreEqual(unescaped, w.Value); w.SetSerializedValue(w.GetSerializedValue());