![]() |
VOOZH | about |
dotnet add package Frank.Testing.TestOutputExtensions --version 2.0.0
NuGet\Install-Package Frank.Testing.TestOutputExtensions -Version 2.0.0
<PackageReference Include="Frank.Testing.TestOutputExtensions" Version="2.0.0" />
<PackageVersion Include="Frank.Testing.TestOutputExtensions" Version="2.0.0" />Directory.Packages.props
<PackageReference Include="Frank.Testing.TestOutputExtensions" />Project file
paket add Frank.Testing.TestOutputExtensions --version 2.0.0
#r "nuget: Frank.Testing.TestOutputExtensions, 2.0.0"
#:package Frank.Testing.TestOutputExtensions@2.0.0
#addin nuget:?package=Frank.Testing.TestOutputExtensions&version=2.0.0Install as a Cake Addin
#tool nuget:?package=Frank.Testing.TestOutputExtensions&version=2.0.0Install as a Cake Tool
A set of nugets to allow for easier testing of dotnet code using xUnit
👁 GitHub contributors
👁 GitHub Release Date - Published_At
👁 GitHub last commit
👁 GitHub commit activity
👁 GitHub pull requests
👁 GitHub issues
👁 GitHub closed issues
Install-Package Frank.Testing
dotnet add package Frank.Testing
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. |
This package is not used by any NuGet packages.
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 |