November 2005 - Posts

Unit Testing News: NUnit and VS2005, TestDriven.NET v2.0 Beta

Jamie Cansdale is continuing his work on version 2.0 of the must-have TestDriven.NET Visual Studio add-in.  Jamie mentions that TestDriven.NET 2.0 beta is available via (the now Microsoft-owned) FolderShare.  Here's Jamie's list of v2.0 improvements:

  • Built and tested using the RTM bits of .NET 2.0 and Visual Studio 2005
  • Support for Visual Studio 2005 Team System unit testing and debugging
  • Support for Visual Studio 2005 Express Editions
  • Compatible with 64bit versions of Windows
  • Backward compatible with Visual Studio .NET 2002/2003
  • Shiny new extensibility model

In NUnit news, Charlie Poole points out that next iteration release (2.2.3) is now available, with some interesting improvements.  Highlights from the release notes:

  • NUnit can now be installed and run under .NET 2.0 and used in conjunction with VS2005. A problem that prevented installation when .NET 2.0 Beta 2 was the only installed framework has been corrected. NUnit 2.2.3 installation requires one of the following .NET framework versions to be present: 2.0.50727, 2.0.50215, 2.0.40607, 1.1.4322 or 1.0.3705.
  • A number of new Assert Methods have been added:
    • Assert.IsNaN(double) - Tests whether it's argument is NaN.
    • Assert.IsEmpty(string) - Tests that it's argument is the empty string.
    • Assert.IsNotEmpty(string) -Tests that it's argument is not the empty string.
    • Assert.IsEmpty(ICollection) - Tests that an array, list or collection is empty.
    • Assert.IsNotEmpty(ICollection) - Tests that an array, list or collection is not empty.
    • Assert.IsInstanceOf(Type,object) - Tests that an object is an instance of the supplied Type.
    • Assert.IsNotInstanceOf(Type,object) - Tests that an object is an not instance of the supplied Type.
    • Assert.IsAssignableFrom(Type,object) - Tests that an object may be assigned to an object of the supplied Type.
    • Assert.IsNotAssignableFrom(Type,object) - Tests that an object may not be assigned to an object of the supplied Type.
    • Assert.Contains(object,IList) - Tests whether an object is in a list or array.
  • The StringAssert class has been moved from the extensions assembly into nunit.framework. It supports the following methods:
    • StringAssert.Contains(string,string) - Tests whether a string contains an expected string.
    • StringAssert.StartsWith(string,string) - Tests whether a string begins with an expected string.
    • StringAssert.EndsWith(string,string) - Tests whether a string ends with an expected string.
    • StringAssert.AreEqualIgnoringCase(string,string) - Compares two strings for equality without regard to case and gives an error message showing the actual strings, without case adjustment.

And finally, if you happen to read this within the next few hours, Noah Coad posts about the next Team System Chat (for the Developer and Tester Editions) today (11/16) at 1:00 PM EST.

-Chris

Cabana Night: Ask the Experts

Next week marks the official start of the Visual Studio 2005 and SQL Server 2005 launch tour.  While the tour won't be coming to Boston until December 15th, you can still be part of the action this Monday night. 

Come to Cabana Night, serving as the November meeting of the Boston .NET User Group, at 6:00 at the Microsoft offices in Waltham.  Styled after the successful "cabana" concept started at TechEd, the evening will feature a host of area experts eager to discuss what's new and interesting about the 2005 products.  It will be an informal and fun chance to share in the launch excitement.

Registration is required.

Hope to see you there!
-Chris