mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Fix UnescapedPathString test
This commit is contained in:
1 parent
8098324fec
commit
a34d0c6528
1 file changed
+1
-2
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user