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.
For example, the TypeTester logs the result. As the result maybe IActionResult, this has no inherent properties so when serialized using default serializer an empty object is returned {}. To correctly enable for logging the type should be specified as dynamic:
For example, the
TypeTester
logs the result. As the result maybeIActionResult
, this has no inherent properties so when serialized using default serializer an empty object is returned{}
. To correctly enable for logging the type should be specified asdynamic
: