VOOZH about

URL: https://www.nuget.org/packages/Frank.Testing.TestOutputExtensions/

⇱ NuGet Gallery | Frank.Testing.TestOutputExtensions 2.0.0




👁 Image
Frank.Testing.TestOutputExtensions 2.0.0

dotnet add package Frank.Testing.TestOutputExtensions --version 2.0.0
 
 
NuGet\Install-Package Frank.Testing.TestOutputExtensions -Version 2.0.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Frank.Testing.TestOutputExtensions" Version="2.0.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Frank.Testing.TestOutputExtensions" Version="2.0.0" />
 
Directory.Packages.props
<PackageReference Include="Frank.Testing.TestOutputExtensions" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Frank.Testing.TestOutputExtensions --version 2.0.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Frank.Testing.TestOutputExtensions, 2.0.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Frank.Testing.TestOutputExtensions@2.0.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Frank.Testing.TestOutputExtensions&version=2.0.0
 
Install as a Cake Addin
#tool nuget:?package=Frank.Testing.TestOutputExtensions&version=2.0.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Frank.Testing

A set of nugets to allow for easier testing of dotnet code using xUnit


👁 NuGet
👁 NuGet

👁 GitHub contributors
👁 GitHub Release Date - Published_At
👁 GitHub last commit
👁 GitHub commit activity
👁 GitHub pull requests
👁 GitHub issues
👁 GitHub closed issues


Installation

NuGet

Install-Package Frank.Testing

.NET CLI

dotnet add package Frank.Testing

Usage

TestOutputHelperExtensions

using Xunit;
using Xunit.Abstractions;

public class MyTestClass
{
 private readonly ITestOutputHelper _outputHelper;

 public MyTestClass(ITestOutputHelper outputHelper)
 {
 _outputHelper = outputHelper;
 }

 [Fact]
 public void MyTestMethod()
 {
 _outputHelper.WriteLine(new { MyProperty = "MyValue" }); // Writes to test output as JSON: {"MyProperty":"MyValue"}
 _outputHelper.WriteJson(new { MyProperty = "MyValue" }); // Writes to test output as JSON: {"MyProperty":"MyValue"}
 }
 
 [Fact]
 public void MyTestMethod2()
 {
 _outputHelper.WriteCSharp(new { MyProperty = "MyValue" }); // Writes to test output as C#: var anonymousType = new { MyProperty = "MyValue" };
 }
 
 [Fact]
 public void MyTestMethod3()
 {
 _outputHelper.WriteXml(new MyClass() { Name = "MyName" }); // Writes to test output as XML: <MyClass><Name>MyName</Name></MyClass>
 }
}
Product Versions Compatible and additional computed target framework versions.
.NET net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 324 4/13/2025
1.8.24-preview 252 4/13/2025
1.8.0 497 6/24/2024
1.7.16-preview 208 6/24/2024
1.7.15-preview 252 3/4/2024
1.7.0 321 3/3/2024
1.6.14-preview 240 3/3/2024
1.6.0 384 1/29/2024
1.5.12-preview 246 1/29/2024
1.5.0 268 1/28/2024
1.4.11-preview 249 1/28/2024
1.4.0 299 1/22/2024
1.3.10-preview 261 1/22/2024
1.3.9-preview 250 1/21/2024
1.3.8-preview 268 1/21/2024
1.3.0 336 1/14/2024
1.2.0 362 1/3/2024
1.1.6-preview 281 1/3/2024
1.1.0 293 1/3/2024
1.0.4-preview 289 1/3/2024
Loading failed