Write the unit test before writing code for class it tests.
首先编写单元测试,然后再编写要测试的类代码。
In a nutshell, the developer writes a test before writing any code.
简单地说,开发人员在撰写代码之前要撰写一个测试。
Simply having the discipline to think about how to test my code before writing it makes it better.
只要记住这条规程—在编写代码之前考虑如何测试代码—就可以使代码变得更好。
Writing a test before the code means you don't get to do the fun part of the job until the test runs and fails.
在编写代码前编写测试这种作法意味着,在测试运行并失败之前,不会做工作中真正有趣的部分。
Agile software development and extreme programming both promote writing unit test cases before developing the source code.
敏捷软件开发和极限编程二者均提倡在开发源代码之前编写单元测试用例。
If the test class doesn't run, spend your time getting XPath support working before spending hours on writing code that might not work when it counts.
如果测试类不能运行,那么请在编写代码之前花点时间获得XPath支持,否则编写的代码可能不会正常运行。
That code made it past several revisions of this document before the problem was spotted, showing how easy it is to make careless mistakes when writing this type of test. Listing 2 is correct
在发现问题之前,该代码居然通过了本文档的前几次修订,这说明在编写此类测试时,犯下粗心的错误是多么容易。
The basic concept of test-driven development is that before writing project code, you write a simple piece of code that tests your hypothetical project code for desired behavior.
测试驱动开发的基本概念是,在写项目代码之前,你写一段简单的代码来测试你假设的项目代码,以获得预期的反应。
Before the test, half of the applicants were warned verbally and in writing that dishonest answers could be detected by the test, and that any misrepresentation would affect hiring decisions.
在测试之前,有一半的申请者收到了口头和书面的警告,不诚实的答案会被这个测试检测出来,任何扭曲事实的行为都会影响到雇佣的决定。
A study from Beilock's lab found that students who spent 10 minutes before a math test writing about their concerns did 15 percent better than those who had not.
来自贝洛克实验室的一项研究发现,那些在数学测验前花10分钟写下自己的关注点的学生要比未这样做的学生多得15%的分数。
Then, you can use the XML to SQL wizard to unit test the XML document for validity before writing your code that will use the XMLToSQL run time library.
同时,您也可以在编写使用XMLToSQL运行时库的代码之前通过XMLToSQL向导进行XML文档的单元测试。
Test Driven Development is the practice of writing unit tests for your code before you actually write that code.
测试驱动开发是在写实际的代码前先写单元测试代码。
Before writing the logic design of FPGA to the chip, we usually use some EDA tools to simulate and test logical functions of the design.
在设计写入FPGA芯片之前,通常运用EDA工具对其逻辑功能进行充分模拟和测试。
The basic concept of test-driven development is that before writing project code, you write a simple piece of code that tests your hypothetical project code for desired behavior.
测试驱动开发的基本概念是你在写代码之前,你先写一小块代码,用于测试你假想的项目代码是否实现了预期的行为。
The basic concept of test-driven development is that before writing project code, you write a simple piece of code that tests your hypothetical project code for desired behavior.
测试驱动开发的基本概念是你在写代码之前,你先写一小块代码,用于测试你假想的项目代码是否实现了预期的行为。
应用推荐