Skip to content

Commit d246f73

Browse files
authored
Removed duplicated MarkupMatches method
1 parent 41f8ece commit d246f73

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

src/Asserting/MarkupMatchesAssertExtensions.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -106,32 +106,6 @@ public static void MarkupMatches(this INode actual, string expected, string? use
106106
MarkupMatches(actual, expectedNodes, userMessage);
107107
}
108108

109-
/// <summary>
110-
/// Verifies that the <paramref name="actual"/> <see cref="INode"/> matches
111-
/// the <paramref name="expected"/> markup, using the <see cref="HtmlComparer"/>
112-
/// type.
113-
/// </summary>
114-
/// <exception cref="HtmlEqualException">Thrown when the <paramref name="actual"/> markup does not match the <paramref name="expected"/> markup.</exception>
115-
/// <param name="actual">The node to verify.</param>
116-
/// <param name="expected">The expected markup.</param>
117-
/// <param name="userMessage">A custom user message to display in case the verification fails.</param>
118-
public static void MarkupMatches(this INode actual, string expected, string? userMessage = null)
119-
{
120-
if (actual is null) throw new ArgumentNullException(nameof(actual));
121-
122-
INodeList expectedNodes;
123-
if (actual.GetHtmlParser() is { } parser)
124-
{
125-
expectedNodes = parser.Parse(expected);
126-
}
127-
else
128-
{
129-
using var newParser = new TestHtmlParser();
130-
expectedNodes = newParser.Parse(expected);
131-
}
132-
MarkupMatches(actual, expectedNodes, userMessage);
133-
}
134-
135109
/// <summary>
136110
/// Verifies that the <paramref name="actual"/> <see cref="INodeList"/> matches
137111
/// the <paramref name="expected"/> markup, using the <see cref="HtmlComparer"/>

0 commit comments

Comments
 (0)