Rank: Advanced Member
Groups: Registered
Joined: 6/17/2012(UTC) Posts: 507
Thanks: 145 times Was thanked: 66 time(s) in 64 post(s)
|
v2.9.0.3 Code:
[TestFixture]
public class TestFixture
{
[TestCase(Numbers.One, "one")]
[TestCase(null, "null")]
public void NotFoundWithDynamic(Numbers? number, string expected)
{
Assert.Fail("TBD");
}
[TestCase("one", "two")]
public void FoundWithDynamic(string number, string expected)
{
Assert.Fail("TBD");
}
public enum Numbers
{
One,
Two,
};
}
Shouldn't both tests "be found" when using dynamic analysis (so I can e.g. pin them within the test itself) ?
|