The RequiredAddin attribute is used to indicate that an assembly requires a particular addin in order to function correctly. If that addin is not installed, the entire assembly is marked as non-runnable.
Note: In the Alpha-3 release, this attribute may be applied to classes or methods as well. This is of limited utility, for two reasons:
The attribute will be limited to assemblies only in the next release.
[assembly: RequiredAddin("MyTestFixtureAddin")]
[assembly: RequiredAddin("MyTestAddin")]
[assembly: RequiredAddin("MyDecoratorAddin")]
...
namespace NUnit.Tests
{
using System;
using NUnit.Framework;
[MyTestFixture]
public class MyTests
{
[MyTest]
public void SomeTest()
{
...
}
}
[TestFixture, MyDecorator]
public class MoreTests
{
[Test, MyDecorator]
public void AnotherTest()
{
...
}
}
}