I have issues with NUnit not running .NET v4 code on the Continuous Integration server. The solution is listed at the link below. The trick is to modify nunit configuration file on the executing machine.
NUnit isn't running VS10 code - Stack Overflow
Update: A more complete solution is here. There is a practical difference in that attribute in the 'startup' tag.