Reputation: 13533
I am starting out with TDD using Moq to Mock an interface that I have:
public interface IDataService
{
void Commit();
TopListService TopLists { get; }
}
From the samples I have seen I would expect SetupGet (or Setup) to appear in the intellisense when I type
var mockDataService = new Mock<IDataService>();
mockDataService.
But it is missing. Could someone suggest why?
Upvotes: 0
Views: 427
Reputation: 17602
It sounds like a problem with your project setup, rather than with Moq.
Mock<IDataService>
will be meaningless).Mock
you're using is Moq.Mock
and not from another namespace.If you can type the code that ought to work and make it build, then it's definitely Visual Studio playing up.
Upvotes: 1