Questions tagged [moles]

Moles - an isolation framework for Microsoft .NET. It allow you to replace any .NET method with a delegate.

Moles is an isolation framework for Microsoft .NET, that allow you to replace any method (including non-virtual/static methods in sealed types) with your own delegate. The moles project was created by the Microsoft Research Pex team.

257 questions
0
votes
1 answer

MoleNotImplementedException thrown by GetEnumerator

I'm a newbie with Moles so forgive the simple question but according to documentation I think this should work: MDataServiceCollection dataServiceCollectionMock = new MDataServiceCollection(); new…
cmo999
  • 2,409
  • 1
  • 14
  • 2
0
votes
1 answer

Why do I get a lambda error that no-one else gets?

I'm trying to debug the following line: MOrigValue.AllInstances.TestString = () => "New value"; There's a red squiggly line under: () => "New value"; Mouseover shows the following error: Delegate…
OldGrantonian
  • 597
  • 1
  • 8
  • 23
1 2 3
17
18