Table of Contents

Interface IRenderedFragment

Namespace
Bunit
Assembly
Bunit.Web.dll

Represents a rendered fragment.

public interface IRenderedFragment : IRenderedFragmentBase, IDisposable
Inherited Members
Extension Methods

Properties

Markup

Gets the HTML markup from the rendered fragment/component.

string Markup { get; }

Property Value

string

Nodes

Gets the AngleSharp AngleSharp.Dom.INodeList based on the HTML markup from the rendered fragment/component.

INodeList Nodes { get; }

Property Value

INodeList

Methods

GetChangesSinceFirstRender()

Performs a comparison of the markup produced by the initial rendering of the fragment or component under test with the current rendering of the fragment or component under test.

IReadOnlyList<IDiff> GetChangesSinceFirstRender()

Returns

IReadOnlyList<IDiff>

A list of differences found.

GetChangesSinceSnapshot()

Performs a comparison of the markup produced by the rendering of the fragment or component under test at the time the SaveSnapshot() was called with the current rendering of the fragment or component under test.

IReadOnlyList<IDiff> GetChangesSinceSnapshot()

Returns

IReadOnlyList<IDiff>

A list of differences found.

SaveSnapshot()

Saves the markup from the current rendering of the fragment or component under test. Use the method GetChangesSinceSnapshot() later to get the difference between the snapshot and the rendered markup at that time.

void SaveSnapshot()

Events

OnMarkupUpdated

An event that is raised after the markup of the IRenderedFragmentBase is updated.

event EventHandler OnMarkupUpdated

Event Type

EventHandler
Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.