With release 4.5.0, passing Array as test parameter fails with
System.IndexOutOfRangeException : Index was outside the bounds of the array.
The following example works fine with 4.4.0, but breaks with 4.5.0:
public sealed class Class1
{
private static IEnumerable<Array> Testcases
{
get
{
yield return new[] { 1, 2, 3 };
}
}
[TestCaseSource(nameof(Testcases))]
public void Foo(Array values)
{
Assert.That(values.Length, Is.EqualTo(3));
}
}