Table of Contents

Class DiffAssertExtensions

Namespace
Bunit
Assembly
Bunit.Web.dll

A collection of AngleSharp.Diffing.Core.IDiff assert extensions and generic assert extensions.

public static class DiffAssertExtensions
Inheritance
DiffAssertExtensions
Inherited Members

Methods

ShouldHaveChanges(IEnumerable<IDiff>, params Action<IDiff>[])

Verifies that a collection of AngleSharp.Diffing.Core.IDiffs contains exactly a given number of elements, which meet the criteria provided by the AngleSharp.Diffing.Core.IDiff inspectors.

public static void ShouldHaveChanges(this IEnumerable<IDiff> diffs, params Action<IDiff>[] diffInspectors)

Parameters

diffs IEnumerable<IDiff>

The collection to be inspected.

diffInspectors Action<IDiff>[]

The AngleSharp.Diffing.Core.IDiff inspectors, which inspect each AngleSharp.Diffing.Core.IDiff in turn. The total number of AngleSharp.Diffing.Core.IDiff inspectors must exactly match the number of AngleSharp.Diffing.Core.IDiffs in the collection.

ShouldHaveSingleChange(IEnumerable<IDiff>)

Verifies that a collection of AngleSharp.Diffing.Core.IDiffs contains exactly one AngleSharp.Diffing.Core.IDiff.

public static IDiff ShouldHaveSingleChange(this IEnumerable<IDiff> diffs)

Parameters

diffs IEnumerable<IDiff>

The collection to be inspected.

Returns

IDiff

The expected single AngleSharp.Diffing.Core.IDiff in the collection.

Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.