Loading ...
Sorry, an error occurred while loading the content.
 

Re: [XP] Stubs, Fakes, and Mocks

Expand Messages
  • Adam Dymitruk
    ... You should keep your mocks. If you are using a powerful framework like Rhino Mocks, you can specify that what is important for you in that one test. The
    Message 1 of 22 , Jan 2, 2008
      > Ok, makes sense. In this case, do you tend to use the
      > mocks as scaffolding to be thrown away later, or do
      > you keep the mocks around even after you've gotten
      > around to implementing the "provider" layers (assuming
      > they're reasonably fast)?

      You should keep your mocks. If you are using a powerful framework like
      Rhino Mocks, you can specify that what is important for you in that
      one test. The rest is stubbed automatically for you.

      See the difference between CreateMock and DynamicMock in RhinoMocks.
      Stubs can be created with one line too. It's actually faster to stub
      with Rhino Mocks than without.

      Adam
    Your message has been successfully submitted and would be delivered to recipients shortly.