Table of Contents

Class HtmlComparer

Namespace
Bunit.Diffing
Assembly
Bunit.Web.dll

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 INode
testHtml 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>
Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.