Generate C#/.NET Xunit test classes with test methods for a single C# file or entire C# project.
If test-driven development (TDD) wasn't followed initially, use Development-Driven Testing (DDT) to generate test classes and test methods to increase code coverage and decrease technical debt. Or, use DDT while practicing TDD to generate boilerplate test classes and test methods.
IsTestProject
set to true
to be recognized as a test project.ddt.defaultNamespace
ddt.doNothingRegardingNullability
ddt.indicateTypeNullability
and ddt.typesNotToBeIndicatedAsNullable
will be ignored. Original nullability on types will be used.ddt.indicateTypeNullability
true
, nullability is indicated by appending ?
to types that can be assigned null
. If false
, nullability is removed. (This is mostly used to limit IDE warnings after tests are generated and before actual test logic is added.)ddt.objectTypeForGenericParameters
T
, T1
, TKey
, etc) with object
.ddt.reservedMethodNames
new
modifier.ddt.testClassNamePrefixIfFileAlreadyExists
ddt.typesNotToBeIndicatedAsNullable
ddt.indicateTypeNullability
is true
, these types will not be indicated as nullable.ddt.useOnlyNewOperatorForInstanceInstantiation
new
operator for instance instantiation.ddt.warningsToDisable
Most, if not all, of the following you can append "... (for now)". As in, these will be addressed.