Contents tagged with Code Blog

  • Parsing a Solution File

    There's a new challenge up at Code Blog.  This time the tests are for something a little more real.  The aim is to parse a Visual Studio SLN file.  I admit to having a vested interest in some code to do this.  I am sick to death of poluting my test code with explicit knowledge of where project output directories are located ('bin\Debug' or whatever).  I really want to reference my project directories by name.  For example, 'Projects.Find("MyProject").BaseDirectory'.

  • Assembly References

    I've added the ability to add assembly references when compiling with Code Blog.  Something that threw me is the strong name key used to sign the 'System' and 'System.Web' assemblies are different!  To make life easy for you I'm now using LoadWithPartialName.  To reference the correct version of 'System.Web' you can just do "System.Web, Version=1.0.5000.0".

  • Code Blog

    I've just uploaded a set of unit tests for a sorting algorithm.  Anyone is welcome to flesh out the failing stup implementation and make the tests pass.  You can compile the code and run the tests online.  Once all tests pass you are free to give your submission a title and post to the Code Blog.  To see other people's submissions you can subscribe to the feed.