Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit 1fb78e9

Browse files
committed
Change test.
1 parent a1a445d commit 1fb78e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

XmlAbstraction.Test/XmlObjectUnitTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ public void Test_Subelements()
297297
xmlObj.Save();
298298
var values = new string[] {"test subelement value 1", "test subelement value 2"};
299299
xmlObj.Write("testsubelements", "subelement", values);
300-
Assert.Equal(values, xmlObj.Read("testsubelements", "subelement", null)); // if they change to null and the subelements disapear then there must be a bug.
300+
Assert.NotEqual(Array.Empty<string>(), xmlObj.Read("testsubelements", "subelement", null));
301301
xmlObj.Save();
302-
Assert.Equal(values, xmlObj.Read("testsubelements", "subelement", null)); // try to see if they are the same, they should as they was just saved.
302+
Assert.Equal(values, xmlObj.Read("testsubelements", "subelement", null));
303303
File.Delete($"{Environment.CurrentDirectory}{Path.DirectorySeparatorChar}" + testXmlFile);
304304
}
305305
}

0 commit comments

Comments
 (0)