Table of Contents

Class TestOutputHelperExtensions

Namespace
Cuemon.Extensions.Xunit
Assembly
Cuemon.Extensions.Xunit.dll

Extension methods for the Xunit.Abstractions.ITestOutputHelper.

public static class TestOutputHelperExtensions
Inheritance
Object
TestOutputHelperExtensions

Methods

WriteLines(ITestOutputHelper, Object[])

Adds a line of text per object in values to the output.

public static void WriteLines(this ITestOutputHelper helper, params object[] values)

Parameters

helper ITestOutputHelper

The Xunit.Abstractions.ITestOutputHelper to extend.

values Object[]

The values to write, per line, to the output.

Exceptions

System.ArgumentNullException

helper cannot be null.

WriteLines<T>(ITestOutputHelper, IEnumerable<T>)

Adds a line of text per item in values to the output.

public static void WriteLines<T>(this ITestOutputHelper helper, IEnumerable<T> values)

Parameters

helper ITestOutputHelper

The Xunit.Abstractions.ITestOutputHelper to extend.

values IEnumerable<T>

The values to write, per line, to the output.

Type Parameters

T

Exceptions

System.ArgumentNullException

helper cannot be null.