Skip to content

0.3.0

Latest

Choose a tag to compare

@kokoabim kokoabim released this 04 Feb 04:12
  • Added feature to add TestServiceProvider support to projects. This provides the target project's dependency injection (DI) functionality in unit tests. If your target project has an IServiceCollection extension method (which is a common practice), you'd use the ConfigureServices property of the TestServiceProviderConfiguration class which is passed to the constructor of TestServiceProvider to add the target project's DI functionality in unit tests. See the TestServiceProviderExample.cs file after adding this support. This can be enabled to always be add to test projects when generating unit tests. Disabled by default. Though a stand-alone command exists to add this support to a project.
    • Stand-alone Command: "Add TestServiceProvider Support To Project..." (kokoabim.ddt.add-testserviceprovider-support)
    • Settings: ddt.addTestServiceProviderSupport and ddt.packagesForTestServiceProviderSupport