WPF MVVM Unit Tests for the ViewModel? [closed]

2019-03-11 17:34发布

I keep reading about the benefits of using MVVM, especially for unit testing. So, now I need to write unit tests for my ViewModel. Does anyone have any examples of this? Should I just generate the unit tests using VS2008 and select those tests that appear important?

2条回答
霸刀☆藐视天下
2楼-- · 2019-03-11 17:45

Josh Smith unit tests one here. Hope that is what you are looking for.

查看更多
劫难
3楼-- · 2019-03-11 17:57

The ViewModel sample of the WPF Application Framework (WAF) shows how the ViewModel can be tested via the unit test framework.

查看更多
登录 后发表回答