How to apply an NUnit Attribute to An Assembly

To apply the Timeout attribute to an assembly, first add the directive using NUnit.Framework; to the assembly's AssemblyInfo.cs. Then add a line specifying the timeout:

[assembly: Timeout(1000)]

According to the MSDN page you can do this using the format you have seen in the AssemblyInfo.cs file:

[assembly: AssemblyCulture("")]

You can therefore probably use:

[assembly: NUnit.Framework.Timeout(2000)]

Although I have not tried this.

This does not need to be in the AssemblyInfo.cs, it can be in any file, and if you want to share settings across many assemblies you can define it in one GlobalAssemblyInfo.cs and then link this file into every project to use the shared assembly settings.