Rank: Advanced Member
Groups: Registered
Joined: 5/22/2011(UTC) Posts: 51 Location: Seattle, WA
Was thanked: 7 time(s) in 7 post(s)
|
This fails, regardless of wheter or not the 'Consider inconclusive tests as passing' setting is enabled. Code:
using System;
using NUnit.Framework;
namespace ReproNCrunchIssue
{
[TestFixture]
public class TypeTests
{
[Datapoints]
private Type[] types = { typeof(int), typeof(string) };
[Theory]
public void TypeTest(Type type)
{
Assume.That(type, Is.Not.EqualTo(typeof(string)));
}
}
}
|