I'm trying to adapt a NUnitLite test runner to use the Category attribute in NUnitLite 1.0, so that I can run a specific batch of tests at a given point. (so, not strictly unit testing) I'm looking at the documentation and the source, but I can't seem to get it to run a specific set of tests with a certain category.
The particular section I'm having trouble wrapping my head around is the second parameter in Load:
private ITestAssemblyRunner runner;
...
IDictionary loadOptions = new Hashtable();
loadOptions.Add("CategoryAttribute", category); //category is a string
if (!runner.Load(assembly, loadOptions))
...
My test fixture looks like this
[TestFixture]
[Category("Original")]
public class ExampleTest2
{
...
I've tried everything I can think of - "Category", "/include", "-include", and I've tried making my [Test]/[TestFixture] explicit. Without the [TestFixture, Explicit], the test runs every time, regardless of the loadOptions category string. With the explicit, it doesn't run at all.
The NUnitLite release notes say that the runner supports the -include option as per NUnitLite 0.9. What am I doing wrong? Is what I'm doing possible in NUnitLite?