daveoftheparty / speedy-moq

Generate boilerplate code for Moq in C#
MIT License
1 stars 0 forks source link

interface defined in referenced project isn't loaded for generation #13

Closed daveoftheparty closed 3 years ago

daveoftheparty commented 3 years ago

It seems as if IInterfaceStore is not loading interface definitions from referenced projects.

If working in a test file where the required interface to Moq is also defined within the same .csproj, everything works fine.

However-- the main use case for this extension is to generate a Mock<IStringAnalyzer> inside MyFeature.UnitTests.StringAnalyzerTests.MyTddTest() given the following project structure:

daveoftheparty commented 3 years ago

Got this working! Here's the output:

MoqItAll.cs.md