Class ShouldBeAdditionAssertExtensions
- Namespace
- Bunit
- Assembly
- Bunit.Web.dll
A set of addition diff assert extensions.
public static class ShouldBeAdditionAssertExtensions
- Inheritance
-
ShouldBeAdditionAssertExtensions
- Inherited Members
Methods
ShouldBeAddition(IDiff, INodeList, string?)
Verifies that the actualChange AngleSharp.Diffing.Core.IDiff is an addition,
i.e. that one or more nodes have been added, and verifies that the additions are equal
to the expectedChange nodes.
public static void ShouldBeAddition(this IDiff actualChange, INodeList expectedChange, string? userMessage = null)
Parameters
actualChangeIDiffThe change to verify.
expectedChangeINodeListThe expected additions to verify against.
userMessagestringA custom user message to display in case the verification fails.
ShouldBeAddition(IDiff, IRenderedFragment, string?)
Verifies that the actualChange AngleSharp.Diffing.Core.IDiff is an addition,
i.e. that one or more nodes have been added, and verifies that the additions are equal
to the rendered markup from the expectedChange IRenderedFragmentBase.
public static void ShouldBeAddition(this IDiff actualChange, IRenderedFragment expectedChange, string? userMessage = null)
Parameters
actualChangeIDiffThe change to verify.
expectedChangeIRenderedFragmentThe expected additions to verify against.
userMessagestringA custom user message to display in case the verification fails.
ShouldBeAddition(IDiff, string, string?)
Verifies that the actualChange AngleSharp.Diffing.Core.IDiff is an addition,
i.e. that one or more nodes have been added, and verifies that the additions are equal
to the markup specified in the expectedChange input.
public static void ShouldBeAddition(this IDiff actualChange, string expectedChange, string? userMessage = null)