Monday, August 28, 2006

Check out the Syntax Highlighter plugin for Windows Live Writer.

///<summary>
///A test for CreateGallery (string)
///</summary>
[TestMethod(), ExpectedException(typeof(ArgumentNullException))]
public void CreateGallery_TestNull()
{
    GalleryHelper target = new GalleryHelper();

    string imageDirectory = null;

    target.CreateGallery(imageDirectory);
}

Works just like you'd expect! If it had a few more niceties like taking out leading spaces, it'd be even better!

posted on Monday, August 28, 2006 7:31:05 PM (Central Standard Time, UTC-06:00)  #    Comments [2]
Tuesday, August 29, 2006 10:56:40 AM (Central Standard Time, UTC-06:00)
Unfortunately, the code lost all white space when viewed in RSS Bandit...
Tuesday, August 29, 2006 7:26:32 PM (Central Standard Time, UTC-06:00)
Yeah... I noticed that this morning when I came into work. To be honest, I'm not sure if that is RSS Bandit or the actual markup, because I've seen the same behavior with other markup, like from that CopyAsHtml addin for Visual Studio. I think I still like Jeff Atwood's macro the best for cases like this - a lot easier to modify for my own purposes and the footprint is really small!
David
Comments are closed.