Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

NullReferenceException when attempting to generate test class #41

Closed
johnmbaughman opened this issue Nov 15, 2018 · 2 comments
Closed

Comments

@johnmbaughman
Copy link

Installed product versions

  • Visual Studio: 2017 Enterprise 15.9.0
  • This extension: 1.9.10

Description

NullReferenceException when attempting to generate test class.
image

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

  1. Select class to generate test class from
  2. Ensure proper testing frameworks and project are selected.
  3. Click Create Unit Test Class button
  4. 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.

@RandomEngy
Copy link
Contributor

Can you try with Visual Studio 2017 15.9.1? The extension was majorly broken in 15.9.0.

@johnmbaughman
Copy link
Author

Awesome! That one worked! The other one didn't; I'll send you the project and packages.config files on that issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants