October 2008 - Posts

Recursive Mocking by Rhino Mocks

This now works :-) The challenge is still open, I intentionally stopped before completing the feature, and there is a failing test in the RecusriveMocks fixture that you can start from. And just to give you an idea about what I am talking about, please...

Request for comments: Changing the way dynamic mocks behave in Rhino Mocks by Rhino Mocks

I have just committed a change to the way Rhino Mocks handles expectations for dynamic mocks and stubs. Previously, the meaning of this statement was "expect Foo() to be called once and return 1 when it does": Expect.Call( bar.Foo ).Return(1...

Rhino Mocks 3.5 Gems - Explicit Property Setting Expectations by Rhino Mocks

This post is derived from the Rhino Mocks 3.5 documentation . Setting expectations for property set was always very simple, and slightly confusing with Rhino Mocks. Here is how you do it: view.Username = " the user name "; The problem is that...

Rhino Mocks Challenge: Implement This Feature by Rhino Mocks

Okay, let us see if this approach works... Here is a description of a feature that I would like to have in Rhino Mocks (modeled after a new feature in Type Mock). I don't consider this a complicated feature, and I would like to get more involvement...

Rhino Mocks 3.5 RTM by Rhino Mocks

Today I decided that I had enough time to get bugs for the 3.5 RC, so I fixed all the remaining bugs, updated the Rhino Mocks 3.5 Documentation , and put the binaries out the site . For this release, I actually have 4 binary packages. One for .NET 3.5...

Meta tests by Test Driven Development

I found this test fixture hilarious. [TestFixture] public class ValidateNamingConventions { private System.Type[] types; [SetUp] public void Setup() { types = typeof (ISearchFactory).Assembly.GetExportedTypes(); } [Test] public void InterfacesStartsWithI...
More Posts