简体   繁体   English

使用C#开始使用TDD编程的最佳步骤是什么?

[英]What are the best steps to start programming with TDD with C#?

I want to start working with TDD but I don't know really where to start. 我想开始使用TDD,但我不知道从哪里开始。 We coding with .NET (C#/ASP.NET). 我们用.NET(C#/ ASP.NET)编码。

I would start by reading up on TDD and why it's a good practice. 我首先要阅读TDD以及为什么这是一个好习惯。 As you read that, try to think about how the concepts apply to your own projects. 在阅读本文时,请尝试考虑这些概念如何应用于您自己的项目。

When I was learning TDD, it seemed simple at first, but it's such a paradigm shift that it forced me to change the way I thought about how my program would work. 当我学习TDD时,起初看起来似乎很简单,但是这种范式转换迫使我改变了我对程序运行方式的看法。 And I guess that's kind of the point. 我想这就是重点。 :) :)

Google测试博客上还有很多很好的信息

There's a good book called Test Driven Development in Microsoft .NET that you might check out. 你可以查看一本名为Test Driven Development in Microsoft .NET的好书。 It is essentially the same as the classic Test Driven Development by Example , but with the Microsoft platform in mind. 它与典型的经典测试驱动开发基本相同,但考虑到了Microsoft平台。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM