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: Removed the FunctionsStartup constraint for TEntryPoint to enable more generic usage.
Enhancement: Enable Microsoft.Azure.Functions.Worker.HttpTriggerAttribute (new isolated function support), in addition to existing Microsoft.Azure.WebJobs.HttpTriggerAttribute (existing in-process function support), within HttpTriggerTester.
Enhancement: Enable Microsoft.Azure.Functions.Worker.ServiceBusTriggerAttribute (new isolated function support), in addition to existing Microsoft.Azure.WebJobs.ServiceBusTriggerAttribute (existing in-process function support), within ServiceBusTriggerTester.
Additionally, CreateServiceBusMessageActions is being renamed to CreateWebJobsServiceBusMessageActions; a new CreateWorkerServiceBusMessageActions has been introduced to support isolatedMicrosoft.Azure.Functions.Worker.ServiceBusTriggerAttribute testing.
Enhancement: Upgraded NUnit dependency to 4.0.1; all unit tests now leverage the NUnit constraint model testing approach.
Note: Also, as a result it is recommended prior to upgrading to v4.1.0, where using NUnit, that all existing unit tests are updated to use the new constraint model testing approach; see migration guide for details.
FunctionsStartup
constraint forTEntryPoint
to enable more generic usage.Microsoft.Azure.Functions.Worker.HttpTriggerAttribute
(new isolated function support), in addition to existingMicrosoft.Azure.WebJobs.HttpTriggerAttribute
(existing in-process function support), withinHttpTriggerTester
.Microsoft.Azure.Functions.Worker.ServiceBusTriggerAttribute
(new isolated function support), in addition to existingMicrosoft.Azure.WebJobs.ServiceBusTriggerAttribute
(existing in-process function support), withinServiceBusTriggerTester
.CreateServiceBusMessageActions
is being renamed toCreateWebJobsServiceBusMessageActions
; a newCreateWorkerServiceBusMessageActions
has been introduced to support isolatedMicrosoft.Azure.Functions.Worker.ServiceBusTriggerAttribute
testing.NUnit
dependency to4.0.1
; all unit tests now leverage theNUnit
constraint model testing approach.v4.1.0
, where usingNUnit
, that all existing unit tests are updated to use the new constraint model testing approach; see migration guide for details.