Class TestOutputHelperExtensions
- Namespace
- Codebelt.Extensions.Xunit
- Assembly
- Codebelt.Extensions.Xunit.dll
Extension methods for the Xunit.Abstractions.ITestOutputHelper.
public static class TestOutputHelperExtensions
- Inheritance
-
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
ITestOutputHelperThe Xunit.Abstractions.ITestOutputHelper to extend.
values
Object[]The values to write, per line, to the output.
Exceptions
- ArgumentNullException
helper
cannot be null.
WriteLines<T>(ITestOutputHelper, T[])
Adds a line of text per item in values
to the output.
public static void WriteLines<T>(this ITestOutputHelper helper, T[] values)
Parameters
helper
ITestOutputHelperThe Xunit.Abstractions.ITestOutputHelper to extend.
values
T[]The values to write, per line, to the output.
Type Parameters
T
Exceptions
- 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
ITestOutputHelperThe Xunit.Abstractions.ITestOutputHelper to extend.
values
IEnumerable<T>The values to write, per line, to the output.
Type Parameters
T
Exceptions
- ArgumentNullException
helper
cannot be null.