Skip to content

Commit

Permalink
Merge 3d5d442 into 1cd3a08
Browse files Browse the repository at this point in the history
  • Loading branch information
eNeRGy164 committed Mar 12, 2022
2 parents 1cd3a08 + 3d5d442 commit c903972
Show file tree
Hide file tree
Showing 15 changed files with 2,105 additions and 1,961 deletions.
8 changes: 4 additions & 4 deletions Src/FluentAssertions/Xml/XDocumentAssertions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public AndConstraint<XDocumentAssertions> NotBeEquivalentTo(XDocument unexpected
params object[] becauseArgs)
{
Guard.ThrowIfArgumentIsNull(expected, nameof(expected),
"Cannot assert the document has a root element if the element name is <null>*");
"Cannot assert the document has a root element if the expected name is <null>*");

return HaveRoot(XNamespace.None + expected, because, becauseArgs);
}
Expand All @@ -157,7 +157,7 @@ public AndConstraint<XDocumentAssertions> NotBeEquivalentTo(XDocument unexpected
}

Guard.ThrowIfArgumentIsNull(expected, nameof(expected),
"Cannot assert the document has a root element if the element name is <null>*");
"Cannot assert the document has a root element if the expected name is <null>*");

XElement root = Subject.Root;

Expand Down Expand Up @@ -189,7 +189,7 @@ public AndConstraint<XDocumentAssertions> NotBeEquivalentTo(XDocument unexpected
params object[] becauseArgs)
{
Guard.ThrowIfArgumentIsNull(expected, nameof(expected),
"Cannot assert the document has an element if the element name is <null>*");
"Cannot assert the document has an element if the expected name is <null>*");

return HaveElement(XNamespace.None + expected, because, becauseArgs);
}
Expand Down Expand Up @@ -217,7 +217,7 @@ public AndConstraint<XDocumentAssertions> NotBeEquivalentTo(XDocument unexpected
}

Guard.ThrowIfArgumentIsNull(expected, nameof(expected),
"Cannot assert the document has an element if the element name is <null>*");
"Cannot assert the document has an element if the expected name is <null>*");

Execute.Assertion
.ForCondition(Subject.Root is not null)
Expand Down
3 changes: 1 addition & 2 deletions Src/FluentAssertions/Xml/XmlNodeFormatter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Xml;
using System.Xml;
using FluentAssertions.Common;
using FluentAssertions.Formatting;

Expand Down
Loading

0 comments on commit c903972

Please sign in to comment.