1) Open the NUnitLiteCF solution in Visual Studio 2005
2) Build the NUnitLiteCFTests project
3) Deploy and to and run your Windows Mobile device or emulator
If you are debugging then you will see a number of first chance
exceptions.
You will not see any output on the emulator or device because Windows
Mobile does not support console applications.
However you can now write your own tests and redirect the output to a
form.
4) The syntax for test suites and tests is the same in NUnitLite as it
is in NUnit so you can use the documentaion for NUNit from the
nunit.org site.
5) What is different bewteen NUnuitLite and NUnit is the way you run
tests.
There is no GUI or Console runner as part of the NUnitLite source
code.
You are expected to either embedded the tests in your application or
write a stand alone runner to load the test assemblies. In both cases
you just need to reference the NUnitLite assembly built above.
I have uploaded an example of embedding the tests in a Windows Mobile
form (NUnitLiteMobileExample.zip)
Currently at work we are using a standalone runner so we can run
multiple test assemblies on a Windows Mobile device in the same way as
the NUNit GUI. I will upload this in the next couple of days.
- Graham