There are several ways but i think its best to run the test on an actual
device. Try looking into:
1. Visual Studio 2008 ("Orcas") has a Smart Device Unit Test Project. It's
in Beta 2 now and is stable enough for actually working on it for real
projects.
2. CFUnitTester tool that the Patterns and Practices team made (included in
the Mobile Client Software Factory)