Hi, great tool! I've encountered what looks like a bug - hope it's easy to fix up. Let me know if you concur or already know about this and I'll raise a bug report accordingly.
With NUnit 2.5, parameterised & generic test fixtures were introduced (
http://www.nunit.org/index.php?p=testFixture&r=2.5). NCrunch doesn't show them as 'Green' (they're reported as passed in NCrunch Tests but all indicators are black). It's almost as if the test fixture isn't recognised by the syntax highlighting, as the test fixture code is being shown as black too (i.e."un-covered").
Sample code (useless but demonstrates the issue at hand!):
Code:
public class Value<T>
{
private readonly T _value;
public Value(T value)
{
_value = value;
}
public T TheValue
{
get { return _value; }
}
}
[TestFixture("some value")]
public class ParameterizedFixture
{
private readonly string _value;
public ParameterizedFixture(string value)
{
this._value = value;
}
[Test]
public void Test()
{
var value = new Value<string>(_value);
Assert.AreEqual("some value", value.TheValue);
}
}
[TestFixture(typeof(object))]
public class GenericFixture<T> where T : new()
{
private readonly T _value = new T();
[Test]
public void Test()
{
var value = new Value<T>(_value);
Assert.AreEqual(_value, value.TheValue);
}
}
[TestFixture(typeof(string), "some value")]
public class GenericAndParameterizedFixture<T>
{
private readonly T _value;
public GenericAndParameterizedFixture(T value)
{
this._value = value;
}
[Test]
public void Test()
{
var value = new Value<T>(_value);
Assert.AreEqual("some value", value.TheValue);
}
}