Moq
There are 2 entries for the tag
Moq
I got stuck on a really stupid problem yesterday and I just figured it out as I was writing a post on the Moq forums. It seems really dumb and maybe that's why I couldn't find any help on it, but since I didn't find anything anywhere I decided to at least put it somewhere to save someone else a little bit of time. Problem I've been using Moq for about a month now and I'm loving it. But it seems all of a sudden I can't use the Expect methods (Expect, ExpectGet, ExpectSet). If I open up...
I hit a road block today writing some tests which were dependent upon another class's property indexer. When trying to do the following using Moq: 1: [TestMethod] 2: public void Test1() 3: { 4: Mock<HttpContextBase> context = new Mock<HttpContextBase>(); 5: 6: Object actual = null; 7: ...