December 2004 - Posts
The tests that I am going to implement this time around have to do with the input parameters to the Add method. Both input parameters in this example cannot be null. If they are null then the Add method should throw ArgumentNullException. Here's the test:
Read More...
When I was thinking about the next test to write I had to go back and look at the test list again. If I can't keep the thing in my head how hard must it be for everyone else? The purpose of this entry is to identify what has been completed so far and
Read More...
Let's see where we were... Retrieve a Bookmark that is not in the collection, return null The test for this looks like this: [ Test ] public void RetrieveABookmarkNotInCollection() { Assert .IsNull(collection[exampleDotComLabel]); } When I run this I
Read More...
The next test to implement is as follows: Add a Bookmark, Retrieve using the label All the tests I wrote previously and the resulting implementation focused on whether or not the count was correct as bookmarks were added and removed from the collection.
Read More...
In a previous post Ben Lowery asked the question? Why is the collection in your test fixture class static? Here is the code from the previous post: [ TestFixture ] public class BookmarkCollectionFixture { private static BookmarkCollection collection;
Read More...
I have given up apologizing for the not so weekly updates to solving this problem - just too much going on. That said; where was I? In the previous step I had refactored out the common initialization code out of each test and put this in the [SetUp] method,
Read More...