Table of Contents

Class ShouldBeRemovalAssertExtensions

Namespace
Bunit
Assembly
Bunit.Web.dll

A set of removal diff assert extensions.

public static class ShouldBeRemovalAssertExtensions
Inheritance
ShouldBeRemovalAssertExtensions
Inherited Members

Methods

ShouldBeRemoval(IDiff, INodeList, string?)

Verifies that the actualChange AngleSharp.Diffing.Core.IDiff is an removal, i.e. that one or more nodes have been removed, and verifies that the removed nodes are equal to the expectedChange nodes.

public static void ShouldBeRemoval(this IDiff actualChange, INodeList expectedChange, string? userMessage = null)

Parameters

actualChange IDiff

The change to verify.

expectedChange INodeList

The expected removal to verify against.

userMessage string

A custom user message to display in case the verification fails.

ShouldBeRemoval(IDiff, IRenderedFragment, string?)

Verifies that the actualChange AngleSharp.Diffing.Core.IDiff is an removal, i.e. that one or more nodes have been removed, and verifies that the removed nodes are equal to the rendered markup from the expectedChange IRenderedFragmentBase.

public static void ShouldBeRemoval(this IDiff actualChange, IRenderedFragment expectedChange, string? userMessage = null)

Parameters

actualChange IDiff

The change to verify.

expectedChange IRenderedFragment

The expected removal to verify against.

userMessage string

A custom user message to display in case the verification fails.

ShouldBeRemoval(IDiff, string, string?)

Verifies that the actualChange AngleSharp.Diffing.Core.IDiff is an removal, i.e. that one or more nodes have been removed, and verifies that the removed nodes are equal to the markup specified in the expectedChange input.

public static void ShouldBeRemoval(this IDiff actualChange, string expectedChange, string? userMessage = null)

Parameters

actualChange IDiff

The change to verify.

expectedChange string

The expected removal to verify against.

userMessage string

A custom user message to display in case the verification fails.

.NET Foundation

Supported by the .NET Foundation.