Geeks With Blogs
Robert Tennyson May 2008 Entries
My Development Philosophy take one
Recently I had a discussion with a colleague at work about a way to speak to future developers that join or take over our projects. The idea was that we could simply add a "developer's note" to the solution items so it would live with the rest of the code in source control. I personally couldn't think of a better place for a piece of documentation like this. After our discussion he spent some time and mocked up a sample developer's note and sent it my way. The idea was that I would customize it to ......

Posted On Friday, May 30, 2008 10:59 PM

Mocking with rhino mocks follow up
This is just a quick follow up to my Mocking with Rhino Mocks post. You can see the entire thread here, but the essence of it is this. DynamicMock creates a mock where all unexpected calls are ignored with no error. So, if we were to create a dynamic mock and then set an expectation that a method on it is called twice, there would be a requirement for two calls, but a third cal would just be ignored rather than cause an error. If we absolutely want the behavior of an exact number of calls, then use ......

Posted On Thursday, May 22, 2008 6:11 PM

Mocking with Rhino Mocks
Ok, myself and a couple of colleagues spent a ton of time today scratching our heads because of an odd behavior in Rhino Mocks. Basically, we set an expectation, set the expectation to repeat only once, and then were surprised to see a passing test when we knew the actual code was calling the expectation too many times. So we created the below example. The test in the example should fail, but it passes. using NUnit.Framework; using Rhino.Mocks; namespace UnitTests { public interface IMyTestInterface ......

Posted On Friday, May 16, 2008 3:29 PM

BDD - From the beginning
I've really been wanting to get deeper into BDD, but I'm having trouble getting the opportunity at work. I think it's a combination of two primary problems (I'm sure there are others as well though). First, it has been freaking ages since I've been present at the very beginning of a project. It seems like I'm always pulled in well after development has started which means well after project style and architecture have been established. Second, my company still hasn't made the shift to Agile practices. ......

Posted On Saturday, May 3, 2008 7:53 AM

Throwing Exceptions
I wanted to capture this in case I ever find myself trying to present this concept again and am failing to come up with a simple example that works. It's about exception handling in C#. I've known about this issue for quite some time and tried to present the problem to an internal user group where I work. Unfortunately the example I came up with didn't provide the expected result and we spent the whole presentation floundering around with the damn thing. Kudos to a buddy of mine for taking the time ......

Posted On Thursday, May 1, 2008 1:56 AM

Copyright © rtennys | Powered by: