Hi Stephen, I've been using MoQ for the Desktop runtime. For the SL runtime I only did manual mocking/stubbing/faking/whatever, since until recently there were not options.
I really like MoQ and now that it works for SL I'd consider using it, however now I'm getting my ViewModels, Converters, etc to compile for the Desktop Runtime so I can test them in the build server using MSTest or XUnit instead of the Silverlight Test Runner and when it comes to mocking frameworks, I can use anything avaialble for the desktop (but I've only used MoQ). I had a similar issue when I was working with the .NET Compact Framework, there was no Test Runner, so we needed to make our model and controllers compile for the desktop and run them there. Then we got a test runner from patterns and practices, but we never got to integrate it with the build server, when VS08 came out, we had a new test runner integrated with the IDE, but it was just too slow (as well as the one from P&P) that we just got back to running the tests in the Desktop Runtime. There's somethign exciting about seeing your unit tests run in the real device (or in the Browser in the case of SL), but after you get over that excitment, you just realzie isn't practical (I'm talking mainly for the CF and SL test runnner from MS, I'm not sure if the other ones are as good as the desktop ones) There're some subtle differences that you can encounter when testing in different runtimes/oss/environments, so in the CF we tried to keep both test projects in sync so when we didn't have time we ran the tests for the desktop runtime and eventually we run the same tests in the CF. However after some time we found that this wasn't adding any value for us (apart from some umanaged code tests that we couldn't mock) and we decided to have CF tests only for thigns with platform dependencies. Something similar applies for Silverlight, altough I've found that there're way less dependencies to the SL Runtime (or are easier to abstract) than what we had with the CF. Do you find scenarios where you really need to run your code in the SL Runtime? Serialization is one of the few ones that I've found On Tue, Sep 29, 2009 at 12:17 PM, Stephen Price <[email protected]>wrote: > Hey all, > I've used a little bit of TypeMock (I have a license) but due to the cost > of the build server license it's put off projects I'm on from using it. I > was just wondering what the most popular mocking frameworks out there are. > I've used a little bit of Rhinomocks for Silverlight, and will be looking at > Rhinomocks for .net. Not looked at Nmock yet, was wondering what everyone > else are using and rave about. > > thx > Stephen > > _______________________________________________ > ozsilverlight mailing list > [email protected] > http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight > > -- Miguel A. Madero Reyes www.miguelmadero.com (blog) [email protected]
_______________________________________________ ozsilverlight mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
