daveoftheparty / speedy-moq

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

bug determining test files #57

Closed daveoftheparty closed 1 year ago

daveoftheparty commented 1 year ago

A cs file with the following line:

using Xunit; // global usings takes care of this but Speedy-Moq extension requires it...

reports back as not being a test file, looks like it's because the determination in https://github.com/daveoftheparty/speedy-moq/blob/0564b090bb0cbdff56c8e75c4b1b16cb827ac505/server/MoqGenerator/Services/Diagnoser.cs#L55 is being too greedy, check .BeginsWith()