I have a class that looks like this:
public class MyService { private MyService(){} public static string GetStuff() { var stuffDid = new
It turns out this was related to Code Coverage being on.
Turning it off fixed the issue.
You can find out how to disable code coverage by following below link
Disable code coverage