Comment 1 for bug 537914

Revision history for this message
Charlie Poole (charlie.poole) wrote :

That's understandable, because the Datapoints are required to exactly match the
argument type and double[,] is not an _exact_ match for T[,], even though it would
a proper match when calling the method. The problem is that there can never be
an exact match for this argument, since Datapoints will always be of some
particular type rather than generic.

I'm inclined not to support this. I'm at a loss to think of a good use case and it
seems to open up the possibility of a Theory that eats up any datapoint whatsoever,
like this one...

        [Theory]
        public void TestForAnythingWhatsoevery<T>(T theThing)
        {
             ...
        }

Can you explain why this is useful? I've also posted a question about it on the
nunit-discuss list, so you can respond there if you're a member.

Charlie