WPF/Silverlight 的 TDD 类型方法 [英] TDD type methodology for WPF / Silverlight

查看:22
本文介绍了WPF/Silverlight 的 TDD 类型方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人拥有设计复杂 WPF xaml 组件(即 ControlTemplates、具有依赖属性的自定义控件)的 TDD 式方法?

Has anyone got a TDD-ish methodology for designing complex WPF xaml components (i.e., ControlTemplates, Custom Controls with dependency properties)?

观察 UI 是否是您断言代码正确最接近的方法?增量开发怎么样?是否有助于逐步划分逻辑?

Is eyeballing the UI the closest you can come to asserting your code is correct? How about incremental development; any aids to dividing up the logic incrementally?

如果现在没有任何方法可以做到这一点,您认为随着平台的不断成熟和普及,还会有吗?

If there isn't any methodologies for doing this now, do you think there will be as the platform continues to mature and gain adoption?

干杯,
贝瑞尔

为了更加专注并避免介绍 TDD,请考虑针对在将 TDD 应用于传统代码库(包括 MVVM)方面经验丰富的受众的主题.

To be more focused and avoid introductions to TDD, please consider the topic for an audience that is fairly seasoned in applying TDD to a traditional code base (including MVVM).

推荐答案

silverlight 工具包提供了所有的单元测试和源代码...在http://silverlight.codeplex.com/

The silverlight toolkit provides all the unit test and the source code... on http://silverlight.codeplex.com/

对于 UI 测试,我认为有些人使用 Silverlight Accessibility apihttp://msdn.microsoft.com/en-us/library/cc707824(VS.95).aspx....

For UI testing I think some folks use the Silverlight Accessibility api http://msdn.microsoft.com/en-us/library/cc707824(VS.95).aspx ....

还有用于 UI 测试的工具

And there are also tools for UI testing, too

MSDN 杂志关于 UI 测试的文章http://msdn.microsoft.com/en-us/magazine/dd483216.aspx

MSDN Magazine article on UI-Testing http://msdn.microsoft.com/en-us/magazine/dd483216.aspx

使用 WPF UI 自动化进行测试http://blogs.msdn.com/b/llobo/archive/2007/09/06/testing-using-wpf-ui-automation.aspx

Testing using WPF UI automation http://blogs.msdn.com/b/llobo/archive/2007/09/06/testing-using-wpf-ui-automation.aspx

这肯定不是一个简单明了的话题,它始终取决于业务案例...

It is surely not an easy and obvious topic and it always depends on the business case...

对于 TDD,请看这本书:单元测试的艺术...

And for TDD in general look at this book: The art of Unit Testing...

这篇关于WPF/Silverlight 的 TDD 类型方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆