6

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.

Shah
  • 71
  • 1
  • 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

0 Answers0