Skip to content

TestHarness<TCycle>.CreateAssertionScope Method ​

Definition ​

Creates an assertion scope that allows multiple AssertEqual<T>(T, T, DefaultInterpolatedStringHandler) assertions to be made with just one AssertFail(String).

c#
public IDisposable CreateAssertionScope(string? name = null);

View source

Parameters ​

NameTypeDescription
nameStringOptional name for the scope.

Returns ​

IDisposable

An IDisposable that finishes the scope.