diff --git a/RecrownedGTK.Tests/Persistence/PreferencesTest.cs b/RecrownedGTK.Tests/Persistence/PreferencesTest.cs index 94b5a1e..2713e06 100644 --- a/RecrownedGTK.Tests/Persistence/PreferencesTest.cs +++ b/RecrownedGTK.Tests/Persistence/PreferencesTest.cs @@ -64,7 +64,23 @@ namespace RecrownedGTK.Test.Persistence { public void SaveTestContent() { preferences.SetPreference("val", 1); preferences.Save(); - FileAssert.AreEqual("assets/preferences.xml", string.Format("{0}/{1}.xml", PATH, FILENAME)); + string[] expectedLines = File.ReadAllLines("assets/preferences.xml"); + string expected = null; + + for (int i = 0; i < expectedLines.Length; i++) { + if (i != 1) { + expected += expectedLines[i]; + } + } + + string[] actualLines = File.ReadAllLines(string.Format("{0}/{1}.xml", PATH, FILENAME)); + string actual = null; + for (int i = 0; i < expectedLines.Length; i++) { + if (i != 1) { + actual += actualLines[i]; + } + } + Assert.AreEqual(expected, actual); } [Test]