P
P Chase
I have recently moved from the Java world to .Net and C#. I am writing
my first set of C# unit tests, using NUnit and Visual Studio 2005 Pro
(not Team with the integrated test stuff). I am so far always running
the tests in the NUnit GUI runner, invoked from VS Tools menu.
Some of my tests need to provide a substantial (100s of k) chunk of
binary data to the methods being tested. Clearly, it is not sensible
to try inlining this in my test classes. So my question is what is the
nicest way to make the test data available to the test classes?
I can add test files to my VS projects, but how can I ensure that
NUnit can find them? I want it to be able to find them even if someone
checks out a copy of my project into a different directory.
All suggestions appreciated.
my first set of C# unit tests, using NUnit and Visual Studio 2005 Pro
(not Team with the integrated test stuff). I am so far always running
the tests in the NUnit GUI runner, invoked from VS Tools menu.
Some of my tests need to provide a substantial (100s of k) chunk of
binary data to the methods being tested. Clearly, it is not sensible
to try inlining this in my test classes. So my question is what is the
nicest way to make the test data available to the test classes?
I can add test files to my VS projects, but how can I ensure that
NUnit can find them? I want it to be able to find them even if someone
checks out a copy of my project into a different directory.
All suggestions appreciated.