Devlico.Us
CodeBetter.Com

Browse by Tags

  • Partial Mocks with the StructureMap AutoMocker

    If you have not checked out the new AutoMocking Container that is part of StructureMap 2.5 I would highly suggest you do, it rocks. I thought I would show how simple it is to create a PartialMock on the Class under Test (CUT) when using the RhinoAutoMocker. Our Class we want to mock public class VisitReassignmentRule...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 10-10-2008
  • Rhino Mocks and mocking Out/Ref params

    I thought I would share a little nugget of greatness with RhinoMocks .  Today I was in the process of mocking out a webservice call for an application I was working on.  But the method I wanted to mock took a out parameter in its signature.  Normally this is not an issue, but since this...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 04-16-2008
  • Mocking Voids with LastCall and RhinoMocks

    When following TDD, using mocking tools like RhinoMocks ( here ) or NMock ( here ) is a critical part of the process. By utilizing mocking tools you can better isolate your tests to only test the code that you have direct control over. This can prove to be critical component to building out your test...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 10-22-2007
  • HowTo: Setting Expectations on Stubs using RhinoMocks

    When using a mocking tool like RhinoMocks, one of the features that it can provide is the ability to A) create a stub of an object and B) set expectations on Method/Property calls that are part of that method. Doing this is pretty easy, but like all things there are some ‘gotcha’s’. Below is a step by...
    Posted to Derik Whittaker (Weblog) by Derik Whittaker on 07-25-2007
Page 1 of 1 (4 items)

Our Sponsors

Red-Gate!

Proudly Partnered With