Skip to content

Small, generic test set of utilities used across several `vm2.*` projects - XUnit logger, FluentAssertions extensions, and test helpers.

License

Notifications You must be signed in to change notification settings

vmelamed/vm2.TestUtilities

Repository files navigation

vm2.TestUtilities

Common test utilities for vm2.* projects. Contains:

  • XUnitLogger: an XUnit-compatible logger that writes to test output
  • XUnitLoggerProvider: an ILoggerProvider that creates XUnitLoggers
  • FluentAssertionsInitializer: contains static methods for setting up the assertion engine, including handling license-related warnings
  • FluentAssertionsExceptionFormatter: enables the display of inner exceptions, e.g. when call.Should().NotThrow() fails.
  • TestUtilities: various test utility methods, including TestLine() which returns a string describing where the method was called from and an optional description.

Installation

From GitHub Packages

# Add package source (one-time setup)
dotnet nuget add source https://nuget.pkg.github.com/vmelamed/index.json \
  -n github-vm2 \
  -u YOUR_GITHUB_USERNAME \
  -p YOUR_GITHUB_PAT

# Install package
dotnet add package vm2.TestUtilities

About

Small, generic test set of utilities used across several `vm2.*` projects - XUnit logger, FluentAssertions extensions, and test helpers.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  

Languages