microsoft / UnitTestBoilerplateGenerator

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

Exception HRESULT 0x80004001 (E_NOTIMPL) #15

Closed cmeeren closed 6 years ago

cmeeren commented 7 years ago

Installed product versions

Description

The generator was working fine for me, then suddenly (in the same session, without restarting VS), when right-clicking a file in the solution explorer and selecting "Create Unit Test Boilerplate", I got this error:

error

This now seems to happen for any file I try it with. I have tried uninstalling and reinstalling the plugin, as well as resetting the template to default settings. I have no idea what caused this in the first place, nor how to debug this to provide more information. Please let me know how I can assist.

RandomEngy commented 7 years ago

Hmm, that's not something I've seen before and it doesn't look like an error that my code generates. I think your best bet is to grab the source and see how far you get debugging. In the project properties under Debug, select "Start external program"

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe

Change this to your path to VS 2017.

The Command Line Arguments should be

/rootsuffix Exp

It should start a sandboxed instance of Visual Studio and you can see how far it gets.

RandomEngy commented 6 years ago

Closing, I can't investigate further.