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
actualChangeIDiffThe change to verify.
expectedChangeINodeListThe expected removal to verify against.
userMessagestringA 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
actualChangeIDiffThe change to verify.
expectedChangeIRenderedFragmentThe expected removal to verify against.
userMessagestringA 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)