Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stijnmoreels/3d519041c92e57a1e2e7d980e6fb5691 to your computer and use it in GitHub Desktop.
Save stijnmoreels/3d519041c92e57a1e2e7d980e6fb5691 to your computer and use it in GitHub Desktop.
using Arcus.Testing;
string expected = "<root><child>100</child></root>";
string actual = "<root><child>101</child></root>";
AssertXml.Equal(expected, actual);
// Arcus.Testing.EqualAssertionException
// AssertXml.Equal failure: expected and actual XML documents do not match
// actual XML has a different value at /root/child/text(), expected 100 while actual 101
//
// Expected:
// <root>
// <child>100</child>
// </root>
//
// Actual:
// <root>
// <child>101</child>
// </root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment