Eliassen.TestUtilities 0.1.85

This package has a SemVer 2.0.0 package version: 0.1.85+2.
dotnet add package Eliassen.TestUtilities --version 0.1.85                
NuGet\Install-Package Eliassen.TestUtilities -Version 0.1.85                
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="Eliassen.TestUtilities" Version="0.1.85" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Eliassen.TestUtilities --version 0.1.85                
#r "nuget: Eliassen.TestUtilities, 0.1.85"                
#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 Eliassen.TestUtilities as a Cake Addin
#addin nuget:?package=Eliassen.TestUtilities&version=0.1.85

// Install Eliassen.TestUtilities as a Cake Tool
#tool nuget:?package=Eliassen.TestUtilities&version=0.1.85                

Eliassen.TestUtilities

Summary

This is a collection of extensions that may help to improve unit tests within your projects

Features

TestContextExtensions

This class contains a set of extension methods for the TestContext class that can be used to add test results, such as files or JSON objects, to the test results. These methods can be used to attach files, such as binary data or text files, to the test results, or to add JSON objects that can be used to analyze the test results.

TestContext.GetTestData(...)

This method can be used to retrieve test data from embedded resources that have been included in the test project. The data can be retrieved as a specific type, such as a class or a JSON object, and can be retrieved based on the name of the test method or a specific target.

TestContext.GetTestDataAsync(...)

This method is an asynchronous version of TestContext.GetTestData, and can be used to retrieve test data from embedded resources in an asynchronous way.

TestContext.AddResult(...)

This method can be used to add a result to the test results, such as a JSON object or a file. The result can be added based on a specific object or a code snippet, and can be added with or without a specific file name.

TestContext.AddResultFile(...)

This method can be used to add a file to the test results, based on a specific file name and content.

TestContext.GetQualifiedTestName(...)

This method can be used to retrieve a simplified name for the test, which includes the fully qualified name of the test class and the name of the test method.

TestContext.GetTestRunResultFiles(...)

This method can be used to retrieve a list of all the files that have been added to the test results for the current test run.

TestContext.ResolveTestType(...)

This method can be used to retrieve the current type from the test context, based on the fully qualified name of the test class.

TestCategories

This is intended to provide a named set of categories to provider to TestCategoryAttribute as a means to consistence within your projects to make executing filtered sets for tests easier.

Product 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Eliassen.TestUtilities:

Package Downloads
Eliassen.Documents

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.85 57 10/10/2024
0.1.84 46 10/10/2024
0.1.83 49 9/27/2024
0.1.82 159 8/23/2024
0.1.81 115 8/1/2024
0.1.81-dev-gh-pipline.3 52 8/1/2024