James Newkirk's Blog

Adding to the kipple... One post at a time.

  • James Newkirk's Blog

    CodePlex.com Beta

    • 32 Comments
    Over 13 months ago (April 4, 2005 in fact) I posted something on my blog that I was leaving the patterns & practices team. Since that time we assembled a team of people and in turn built a community site for developers to innovate and participate...
  • James Newkirk's Blog

    I am searching for a new TDD example

    • 31 Comments
    I am looking for a new example to demonstrate Test Driven Development. In the TDD book that Alexei and I wrote we demonstrated TDD using a Stack. For a copy of the chapter see http://workspaces.gotdotnet.com/tdd . We felt that this was a good example...
  • James Newkirk's Blog

    Why variables in NUnit [TestFixture] classes should be static?

    • 25 Comments
    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;...
  • James Newkirk's Blog

    Why unit testing in Visual Studio Team System - Again

    • 24 Comments
    I know there is nothing that I can say that will be viewed objectively, because I am a Microsoft employee and I have been tangentially involved with the VS Team System development team (I am the development lead for the patterns & practices). That...
  • James Newkirk's Blog

    NUnit V2.1 in Visual Studio 2005 Beta 1

    • 20 Comments
    I recently installed Visual Studio 2005 Beta 1 and wanted to understand what I had to do to get NUnit running. NUnit installed without a problem. Cool, instinctively I did what I do every time I install NUnit, I run NUnit's tests. All 478 NUnit tests...
  • James Newkirk's Blog

    Testing Private Methods/Member Variables - Should you or shouldn't you

    • 19 Comments
    One of the often requested features of NUnit was the ability to test private member variables and private methods. I resisted because I always felt that if you limited yourself to the public interface that enabled you to freely change the implementation...
  • James Newkirk's Blog

    My first unit test in Visual Studio Team System

    • 17 Comments
    As usual when you sit down and write your first bit of code in a new language or in this case a new unit testing framework what else would you write other then the tested version of Hello World (thanks to Scott Densmore ). In this case the unit testing...
  • James Newkirk's Blog

    Pondering TDD in Microsoft .NET, Second Edition

    • 16 Comments
    I have been getting asked quite a bit lately about updating the Test-Driven Development book. A number of things have changed since the book was published. Among them is .NET 2.0 has shipped, Visual Studio Team System has an integrated unit testing tool...
  • James Newkirk's Blog

    Refactoring: Introduce SetUp Method

    • 16 Comments
    Tests in a TestFixture share common initialization code. Create a method in the TestFixture, move common initialization code to the method, and execute the method prior to each test. Before: [ Test ] public void UponCreationCountIsZero() { BookmarkCollection...
  • James Newkirk's Blog

    How to make sense of Code Coverage metrics

    • 12 Comments
    (co-authored with Brad Wilson ) Even since the release of Visual Studio Team System 2005 with easy to use code coverage tools, people inside (and outside) of Microsoft have been talking about what it means. The most common approach we've seen is for a...
  • James Newkirk's Blog

    NUnit Converter V0.2 is on GotDotNet

    • 11 Comments
    I have posted an early version (0.2) of a conversion program. The program converts C# NUnit code into tests compatible with Visual Studio 2005 Team System. It is an early version - there is still much work to do. See the release notes for what is converted...
  • James Newkirk's Blog

    I can't type - Code Snippets in Visual Studio 2005 to the rescue

    • 10 Comments
    Visual Studio 2005 has a feature that will help me and hopefully you a great deal. See, I do not know how to touch type. However, many people who have seen me type think I am one of the fastest two finger typists around. This is probably not something...
  • James Newkirk's Blog

    Quick & Dirty Compatibility

    • 10 Comments
    You say this new unit testing tool in VS Team System is something that you want to use but you have a large number of existing tests in NUnit. For some reason you don’t have a great desire to walk through and change all the attribute names. Well...
  • James Newkirk's Blog

    Why Blog?

    • 9 Comments
    For a number of months many people have been after to me write a blog. I have resisted because I did not want to be one of the people who started writing a blog with a lot of energy only to see it whither to a few posts a year. However over the past few...
  • James Newkirk's Blog

    CodePlex Discussions at TechEd Boston

    • 9 Comments
    I will be attending TechEd in Boston in June. If you have questions about CodePlex ( http://codeplex.com ) or ideas on what we need to do to improve I would like to talk with you. As it gets closer I will be setting up some specific times and a place...
  • James Newkirk's Blog

    Movies

    • 8 Comments
    From Brad Wilson (The .NET Guy) Italicize the ones you've seen and Bold the ones you actually liked. I was surprised by how many of these I had seen. I had to go to #42 "Rush Hour 2" before I missed one and I only missed 6 out of the 100. I guess it figures...
  • James Newkirk's Blog

    NUnit Converter V0.5

    • 7 Comments
    I have released V0.5. You can get it here . Due to the feedback I received from Scott Densmore this new version has support for files contained in folders within a project and a number of other bugs he and Brian Button found when converting the tests...
  • James Newkirk's Blog

    Bookmark Collection: Choosing the first test

    • 7 Comments
    Sorry for the diversions and the delay. The first thing I need to is choose the first test. It really does not matter which test is chosen first, really it doesn't. I have to finish all of the tests to finish the task. There are a couple of choices. I...
  • James Newkirk's Blog

    Bookmark Collection: Implementing the Add Method

    • 6 Comments
    The first test I implemented last week turned out to describe an excellent example of the Fake It ('Til You Make It') pattern. As we continue with the next test let's see if we will continue to "Fake It" or do we have enough tests and information to begin...
  • James Newkirk's Blog

    Bookmark Collection User Stories

    • 6 Comments
    I sat down today with Peter Provost and Brian Button and we outlined a number of user stories for the Bookmark Collection TDD example. My focus for the example is on programmer tests. Therefore, I am not going to use Customer Tests, although it would...
  • James Newkirk's Blog

    Bookmark Collection - Story #1

    • 6 Comments
    The first story that we are going to implement in the bookmark collection is the following: Bookmark Collection CRUD (Create, Retrieve, Update, Delete) Our collection should inherit from IDictionary and behave accordingly This implementation and the corresponding...
  • James Newkirk's Blog

    NUnit Tests and Visual Studio 2005 Team System

    • 6 Comments
    In addition to GotDotNet workspaces V2 I have been busy on the testing front. A number of customers have started looking at the new testing tool in Visual Studio 2005 Team System. One of the first questions that comes to mind is what am I going to do...
  • James Newkirk's Blog

    Change is good

    • 6 Comments
    As some of you may already know, I have decided to leave the patterns & practices team. I have been working with the team as a consultant and as an employee for 2 1/2 years. I have enjoyed my tenure with the group. I was able to work with great people...
  • James Newkirk's Blog

    patterns & practices - Enterprise Library and Pattern Share

    • 6 Comments
    It's been awhile but I have been pretty busy. I know both of these were delivered yesterday (28 January 2005) but I wanted to alert you to two new items from the patterns & practices team if you have not already heard. The first one is Enterprise...
  • James Newkirk's Blog

    NUnit Converter V0.4

    • 5 Comments
    I was talking with Scott Densmore and Brian Button who are busy converting the tests in Enterprise Library to use Visual Studio 2005 Team System and they mentioned that they would like to have the converter convert all the files that are contained in...
Page 1 of 4 (93 items) 1234