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
actualChange
IDiffThe change to verify.
expectedChange
INodeListThe expected additions to verify against.
userMessage
stringA 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
actualChange
IDiffThe change to verify.
expectedChange
IRenderedFragmentThe expected additions to verify against.
userMessage
stringA 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)