Class HtmlComparer
Represents a test HTML comparer, that is configured to work with markup generated by the ITestRenderer and Htmlizer classes.
public sealed class HtmlComparer
- Inheritance
-
HtmlComparer
- Inherited Members
- Extension Methods
Constructors
HtmlComparer()
Initializes a new instance of the HtmlComparer class.
public HtmlComparer()
Methods
Compare(INode, INode)
Compares the controlHtml
with the testHtml
and returns any differences found.
public IEnumerable<IDiff> Compare(INode controlHtml, INode testHtml)
Parameters
controlHtml
INodetestHtml
INode
Returns
- IEnumerable<IDiff>
Compare(IEnumerable<INode>, IEnumerable<INode>)
Compares the controlHtml
with the testHtml
and returns any differences found.
public IEnumerable<IDiff> Compare(IEnumerable<INode> controlHtml, IEnumerable<INode> testHtml)
Parameters
controlHtml
IEnumerable<INode>testHtml
IEnumerable<INode>
Returns
- IEnumerable<IDiff>