What is your choice tool for creating stubs?

Following my last question, “ What is a Stub,” I would really like to sit down today and play more with creating stub objects.

What is your tool for creating Stub objects?

And for bonus points :)

Can you also link to any good tutorials to get started with them?

Thank you, a lot of guys and girls, appreciated :)

FYI - I am using .NET (2.0 @Work, 3.5 @Home)

+3
source share
5 answers

, Rhino.Mocks. , "Mocks Are not Stubs", Rhino.Mocks . Rhino.Mocks, . .

, . Ayende.com, Rhino.Mocks, - , . . , "" , ; / , .

( , , RTFM, .)

+4

Rhinomocks . , . , , . .

AAA, , , Moq , , . , , . , , , .

+1

JMD..

Rhino Mocks, , , , .

, , ():

+1

RhinoMocks , moq .

var mock = new Mock<IFoo>();
mock.Expect(foo => foo.Execute("ping")).Returns(true);

RhinoMocks, , , API- moq , () . Phil Haack RhinoMocks, Moq, .

+1

We developed a framework for Pex that you can read (and find out) at http://research.microsoft.com/stubs . This structure is in many ways different from Rhino / Moq: it is “simple” to create stubs and source code.

+1
source

All Articles