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)
, Rhino.Mocks. , "Mocks Are not Stubs", Rhino.Mocks . Rhino.Mocks, . .
, . Ayende.com, Rhino.Mocks, - , . . , "" , ; / , .
( , , RTFM, .)
Rhinomocks . , . , , . .
AAA, , , Moq , , . , , . , , , .
JMD..
Rhino Mocks, , , , .
, , ():
RhinoMocks , moq .
var mock = new Mock<IFoo>(); mock.Expect(foo => foo.Execute("ping")).Returns(true);
RhinoMocks, , , API- moq , () . Phil Haack RhinoMocks, Moq, .
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.