Replaced xunit with NUnit.
Modernized the code a bit.