UnitTestEx provides .NET testing extensions to the most popular testing frameworks (MSTest, NUnit and Xunit) specifically to improve the testing experience with ASP.NET controller, and Azure Function, execution including underlying HttpClientFactory mocking.
Enhancement: Updated all package depenedencies to latest.
Enhancement: The GenericTester updated to support IHostStartup to enable shared host dependency injection configuration.
Enhancement: Added IEventExpectations<TSelf> and ILoggerExpectations<TSelf> support to GenericTester and ValidationTester.
Enhancement: Moved the CreateServiceBusMessage and related methods from FunctionTesterBase up the inheritance hierarchy to TesterBase<TSelf> to enable broader usage.
Enhancement: Added ExpectEventFromJsonResource and ExpectDestinationEventFromJsonResource expectations to simplify specification versus having to instantiate EventData.
Enhancement: The JsonElementComparer now defaults to case-insensitive comparison.
Enhancement: All internal usage of the ObjectComparer replaced with usage of the JsonElementComparer to break external dependency. All MembersToIgnore have been replaced with PathsToIgnore (being the fully-qualified JSON path) as this is more explicit and less error prone. The ObjectComparer has been flagged as Obsolete and will be removed in a later version.
GenericTester
updated to supportIHostStartup
to enable shared host dependency injection configuration.IEventExpectations<TSelf>
andILoggerExpectations<TSelf>
support toGenericTester
andValidationTester
.CreateServiceBusMessage
and related methods fromFunctionTesterBase
up the inheritance hierarchy toTesterBase<TSelf>
to enable broader usage.ExpectEventFromJsonResource
andExpectDestinationEventFromJsonResource
expectations to simplify specification versus having to instantiateEventData
.JsonElementComparer
now defaults to case-insensitive comparison.ObjectComparer
replaced with usage of theJsonElementComparer
to break external dependency. AllMembersToIgnore
have been replaced withPathsToIgnore
(being the fully-qualified JSON path) as this is more explicit and less error prone. TheObjectComparer
has been flagged asObsolete
and will be removed in a later version.