Rank: Newbie
Groups: Registered
Joined: 6/23/2017(UTC) Posts: 2 Location: Ireland
Thanks: 3 times
|
Hi, I'm using NCrunch 3.6.0.2 on a C# library project with NUnit 3.6.1, targeting .NET 4.5 on Visual Studio 2015. I'm writing parameterized tests like this: Code:
[Test, TestCaseSource(nameof(SomeIntegers))]
public void MyTest(List<int> someIntegers)
{
...
}
private static IEnumerable<List<int>> SomeIntegers {get; }
= new[]
{
new List<int>(1, 2, 3),
new List<int>(4, 5, 6),
new List<int>(7, 8, 9)
};
In tests like the one above, NCrunch only runs the test once, with the first parameter (in this case new List<int>(1, 2, 3)). Both the NUnit console test runner and ReSharper handle this properly. Am I missing some configuration?
|