How to test a WPF user interface?

前端 未结 9 535
余生分开走
余生分开走 2020-12-04 07:46

Using win forms with an MVC/MVP architecture, I would normally use a class to wrap a view to test the UI while using mocks for the model and controller/presenter. The wrapp

9条回答
  •  粉色の甜心
    2020-12-04 08:35

    @Matt David,

    Please read documentation and take a look at the code samples for Microsoft CompositeWPF (aka Prism). It's a project created specifically to teach how to deal with MVP/MVC architecture in test-driven manner. Their sample application contains unit tests for presenters\controllers and very cool acceptance tests for UI (they use White framework to simulate user actions)

提交回复
热议问题