SparkyTestHelpers

.NET Unit test helpers for asserting that exceptions were / weren't thrown, and for "scenario tests".


Keywords
test, testing, unittest, rowtest, automapper, configuration-files, csharp, dotnet, dotnet-standard, moq, unit-testing
License
MIT
Install
Install-Package SparkyTestHelpers -Version 1.5.4

Documentation

sparky-test-helpers

This repo contains source code and unit tests for nuget packages:

SparkyTestHelpers

Unit test helpers for Exception expectations and "scenario" (row) tests:

SparkyTestHelpers.Scenarios.MsTest

SparkyTestHelper.Scenarios extensions for better scenario testing with MSTest / VisualStudioTestTools:

SparkyTestHelpers.AppSettings

Unit test helpers for "appSettings" values in XML .config files:

SparkyTestHelpers.AspNetMvc

Unit test helpers for ASP.NET MVC (.NET Framework version)

SparkyTestHelpers.AspNetMvc.Core

Unit test helpers for ASP.NET MVC (.NET Core version)

SparkyTestHelpers.DataAnnotations

Unit test helpers for validation with DataAnnotation attributes:

SparkyTestHelpers.Mapping

Unit test helpers for verifying values of properties "mapped" from one type to another:

SparkyTestHelpers.AutoMapper

Additional AutoMapper extension methods for SparkyTestHelpers.Mapping:

SparkyTestHelpers.Moq

Unit test syntax helpers for the Moq mocking framework:

SparkyTestHelpers.Moq.Fluent

Unit test syntax helpers for using the Moq mocking framework with Fluent Assertions:

SparkyTestHelpers.Populater

Tools for populating test class instance properties:

SparkyTestHelpers.Xml

Unit test helpers for XML .config files:

SparkyTestHelpers.NonPublic

Provides simple "fluent" syntax for accessing non-public methods, properties and fields from unit tests: