C# - WPF : testing strategies

前端 未结 5 1968
情书的邮戳
情书的邮戳 2021-02-03 12:22

I\'m new to C# 4.0 and WPF and I\'m about to start a new application.

Coming from a C++/MFC world, I\'m interested in testing strategies used with the up to date technol

5条回答
  •  时光说笑
    2021-02-03 12:56

    These days most people that care about unit testing of WPF tend to make use of the MODEL-VIEW-VIEWMODEL (MVVM) design pattern. This is a tag on stackoverflow about it.

    This lets you unit-test most of your code (including a lot of the UI logic) without WPF getting in the way.

    For system testing see the other answers to this questions.

提交回复
热议问题