rewired to use NUnit, updated to comply with StyleCop rules