Replaced NUnit ExpectedException attributes with Assert.Throws