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

Commit

Permalink
Change test.
Browse files Browse the repository at this point in the history
  • Loading branch information
AraHaan committed Nov 5, 2018
1 parent a1a445d commit 1fb78e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XmlAbstraction.Test/XmlObjectUnitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ public void Test_Subelements()
xmlObj.Save();
var values = new string[] {"test subelement value 1", "test subelement value 2"};
xmlObj.Write("testsubelements", "subelement", values);
Assert.Equal(values, xmlObj.Read("testsubelements", "subelement", null)); // if they change to null and the subelements disapear then there must be a bug.
Assert.NotEqual(Array.Empty<string>(), xmlObj.Read("testsubelements", "subelement", null));
xmlObj.Save();
Assert.Equal(values, xmlObj.Read("testsubelements", "subelement", null)); // try to see if they are the same, they should as they was just saved.
Assert.Equal(values, xmlObj.Read("testsubelements", "subelement", null));
File.Delete($"{Environment.CurrentDirectory}{Path.DirectorySeparatorChar}" + testXmlFile);
}
}
Expand Down

0 comments on commit 1fb78e9

Please sign in to comment.