An extension for Visual Studio that generates a unit test boilerplate from a given class, setting up mocks for all dependencies. Supports NUnit, Visual Studio Test, Moq and SimpleStubs.
MIT License
158
stars
51
forks
source link
NullReferenceException when attempting to generate test class #41
NullReferenceException when attempting to generate test class.
Project implements Caliburn.Micro as the IoC framework. Test project uses Moq and xUnit.
Class has a single constructor with parameters; two are dynamic, others are instantiated objects and interfaces. Project is .NET Framework 4.6.2
Steps to recreate
Select class to generate test class from
Ensure proper testing frameworks and project are selected.
Click Create Unit Test Class button
Exception dialog should now be displayed.
Current behavior
Exception dialog displays and no test class is generated.
Expected behavior
No exception dialog displayed and test class is generated.
Installed product versions
Description
NullReferenceException when attempting to generate test class.
Project implements Caliburn.Micro as the IoC framework. Test project uses Moq and xUnit. Class has a single constructor with parameters; two are dynamic, others are instantiated objects and interfaces. Project is .NET Framework 4.6.2
Steps to recreate
Current behavior
Exception dialog displays and no test class is generated.
Expected behavior
No exception dialog displayed and test class is generated.