Frank.Testing.Logging
1.7.16-preview
This is a prerelease version of Frank.Testing.Logging.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Frank.Testing.Logging --version 1.7.16-preview
NuGet\Install-Package Frank.Testing.Logging -Version 1.7.16-preview
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.Logging" Version="1.7.16-preview" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Frank.Testing.Logging --version 1.7.16-preview
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Frank.Testing.Logging, 1.7.16-preview"
#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.
// Install Frank.Testing.Logging as a Cake Addin #addin nuget:?package=Frank.Testing.Logging&version=1.7.16-preview&prerelease // Install Frank.Testing.Logging as a Cake Tool #tool nuget:?package=Frank.Testing.Logging&version=1.7.16-preview&prerelease
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
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 | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Frank.PulseFlow.Logging (>= 2.0.0)
- Frank.Reflection (>= 1.3.0)
- Frank.Testing.TestOutputExtensions (>= 1.7.16-preview)
- JetBrains.Annotations (>= 2023.3.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- xunit.extensibility.core (>= 2.8.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Frank.Testing.Logging:
Package | Downloads |
---|---|
Frank.Testing.TestBases
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.8.0 | 120 | 6/24/2024 |
1.7.16-preview | 85 | 6/24/2024 |
1.7.15-preview | 185 | 3/4/2024 |
1.7.0 | 245 | 3/3/2024 |
1.6.14-preview | 193 | 3/3/2024 |
1.6.0 | 367 | 1/29/2024 |
1.5.12-preview | 219 | 1/29/2024 |
1.5.0 | 273 | 1/28/2024 |
1.4.11-preview | 248 | 1/28/2024 |
1.4.0 | 320 | 1/22/2024 |
1.3.10-preview | 296 | 1/22/2024 |
1.3.9-preview | 277 | 1/21/2024 |
1.3.8-preview | 299 | 1/21/2024 |
1.3.0 | 307 | 1/14/2024 |
1.2.0 | 400 | 1/3/2024 |
1.1.6-preview | 318 | 1/3/2024 |
1.1.0 | 360 | 1/3/2024 |
1.0.4-preview | 311 | 1/3/2024 |
1.0.0 | 347 | 1/3/2024 |
0.1.3-preview | 336 | 1/3/2024 |
0.1.2-preview | 269 | 1/3/2024 |