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, params object[])
Adds a line of text per object in values to the output.
public static void WriteLines(this ITestOutputHelper helper, params object[] values)
Parameters
helperITestOutputHelperThe Xunit.Abstractions.ITestOutputHelper to extend.
valuesobject[]The values to write, per line, to the output.
Exceptions
- ArgumentNullException
helpercannot 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
helperITestOutputHelperThe Xunit.Abstractions.ITestOutputHelper to extend.
valuesIEnumerable<T>The values to write, per line, to the output.
Type Parameters
T
Exceptions
- ArgumentNullException
helpercannot 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
helperITestOutputHelperThe Xunit.Abstractions.ITestOutputHelper to extend.
valuesT[]The values to write, per line, to the output.
Type Parameters
T
Exceptions
- ArgumentNullException
helpercannot be null.