I am trying to Mock HttpRuntime.AppDomainAppPath in one of unit tests using Moq framework. It is always giving null, can somebody please guide me to moq this one.
Asked
Active
Viewed 3,078 times
6
-
In this post found the way to handle mocking a static method http://adventuresdotnet.blogspot.in/2011/03/mocking-static-methods-for-unit-testing.html – Shah Apr 29 '14 at 04:46
-
This is already answered here. http://stackoverflow.com/questions/2416362/mock-static-property-with-moq – indolentdeveloper Jan 12 '15 at 05:27
-
Possible duplicate of [Mock static property with moq](https://stackoverflow.com/questions/2416362/mock-static-property-with-moq) – James Khoury Dec 13 '18 at 04:05