Unless I've misunderstood, all that's needed here is to specify a constraint on the generic name 'T' like this:
void ProcessMyList<T>( List<T> list) where T : Fruit
But I do wonder why the method must be generic at all, only if there are classes derived from Fruit or there's an interface...
I'm simply using: Microsoft.VisualStudio.TestTools.UnitTesting;
I just want to have the code read a specified test input CSV file and at the same time access a corresponding set of tables that are prepared and populated to match the CSV data.
I don't get this, are you seeing a compilation error or an error during debugging?
If its debugging is there a stack trace? can you include the file "trial.dat" so we can repro the problem?
Also the code as posted won't compile, seems we need both panes of code you posted and an additional...
I want add some more tests to a console app that updates a database by consuming a CSV file.
This is a critically important app that currently has no unit tests that verify we update the DB as expected.
I want to add this, I believe I can add a project to the solution that sets up and...