I'm using Visual Studio unit tests (mstest) to test my viewmodels. Nunit would work too. I use model-view-viewmodel so I have very little (or no) code in the codebehind. If you want to take testing further look at the silverlight unit test framework in the silverlight toolkit. I haven't tried that but it seems to get updated with every version of the toolkit.