It talks not only about the mechanics of how to write tests and allow them to drive your code, but also why test-driven programming is such a good thing.
该书不仅讲述了如何编写测试和让这些测试来驱动您的代码的原理,而且还讲述了测试驱动的编程为什么是一种好的编程方法。
The code handles the toggling of editing modes, using signals to drive the view.
以上代码通过使用信号驱动视图来处理编辑模式的开关。
Listing 1 shows the code to create the two tables that drive the application.
清单1显示了用于创建驱动应用程序的两个表格的代码。
In addition, the drive itself can validate the data being written, so that its integrity code matches the data.
此外,驱动器自身可以验证正在写入的数据,以便其完整性代码与数据匹配。
We have established the need to emulate SCA components such as human tasks and external services so that they can drive particular code paths in the BPEL process.
我们已经建立了模拟sca组件的需求(如人工任务和外部服务),以便它们可以在BPEL流程中驱动特定的代码路径。
And in my experience, my code is much simpler when tests drive it, and I'm always in the market for greater simplicity.
根据我的经验,在测试推动代码时,我的代码就会简单得多,而且我一直在设法使它们更为简单。
But if, say, a printer driver suddenly erases the kernel code needed to access the disk drive, the operating system will have part of its brain cut out.
但是,比如一个打印机驱动程序突然把接磁盘驱动所需的核心代码删除掉,操作系统就会出现部分停顿。
Before you can run the program, you need to add code to drive it.
在运行程序之前,需要加入一些代码来驱动它。
As a result, your code will look remarkably different when tests drive it.
结果,当测试推动代码时,您的代码就会大有改观。
All PC systems start the boot process by executing code in ROM (specifically, the BIOS) to load the sector from sector 0, cylinder 0 of the boot drive.
所有的PC系统都是通过执行rom(明确地说,BIOS)中的代码从引导磁盘的0柱面0扇区加载扇区,从而开始引导过程。
You can use the same code to drive your Web service and your view.
可以用相同的代码来驱动Web服务和视图。
The code shown in Listing 5 opens the main hard drive on Windows.
清单5所示代码打开windows主硬盘驱动器。
To drive the sample, you can use any application that puts a text message onto the queue, such as the amqsput sample included with WebSphere mq. Here is the MDB code.
要想驱动这个示例,可以使用任何能将一个文本消息放到队列上的应用程序,比如随websphere mq所带的amqsput示例。
Applies To: Indicates if the model is represented in a single file, meaning whether a single file will drive your code generation.
Applies To:表示该模型是否在单个文件中,即是否使用单个文件进行代码生成。
Then I wrote a version using TDD (writing the tests before the code, allowing the testing to drive the code's design).
然后,使用TDD(在编写代码之前编写测试,这样就可以用测试驱动代码的设计)编写了另一个版本。
If so, you might want to copy the source files for the implementation and test harness onto your disk drive so you can alter the parameters, styles, or code ( see Download).
如果想开发自己的工具提示部件,那么可以将这个实现的源文件和测试页面复制到硬盘上,然后就可以修改参数、样式或代码(参见下载)。
A custom client was written to drive the experiments and trigger the code paths of interest on the server.
我编写了定制客户机,用于驱动实验并触发服务器上感兴趣的代码路径。
Typically the Business requirement is written and the team will drill down to flesh out the use cases that will drive the tests cases, the unit tests and ultimately the implementation code.
通常,编写完业务需求后,团队成员会进行深入的探讨,建立起具体的用例,由这些用例驱动测试用例、单元测试和最终代码的实现。
This code is used to drive the message display.
该代码用于驱动消息显示。
If you open a malicious web page, the browser's sandbox prevents that malicious code from leaving the browser and installing itself to your hard drive.
就算你打开一个恶意网页,浏览器的沙箱也会阻止恶意代码安装到硬盘上。
Always backup your code - I've experienced a complete hard drive failue and lost a lot of code when I was younger and felt horrible because of what had happened.
经常备份代码。 在我年轻时,我就有过因硬盘故障而丢了大量代码的经历,这经历很恐怖的。
Then, the kernel itself has a RAMdisk built into it that contains some of the security features; compare with the code found on the hard drive, such as the /var/utils/checkkernel.tcl script.
然后,内核本身具有一个内嵌的RAMdisk,其中包含了一些安全性特性;我们可以对在硬盘上找到的代码进行比较,例如 /var/utils/checkkernel.tcl 脚本。
When you register for one of our services, the World Bank sets a cookie, a small bit of code stored on your computer's hard drive that enables you to manage your subscriptions and online profile.
当您注册使用我们的一项服务时,世行就设置了一个cookie,即储存在您电脑硬盘上的一小段代码,它可以帮您管理订阅的出版物和在线资料。
Using a set of rules to drive the matrix, the process for constructing the chain code is algebraically implemented.
采用一组规则驱动该矩降,能够使转换过程用代数方法实现。
Once created, pipelines can build code and orchestrate the work required to drive applications from commit to delivery.
一旦创建,管道可以构建代码并编排从提交到交付的应用所需的工作。
If there is interfere between the connection box and other components, the connection box can be moved from the drive end (DE) to non-drive end (NDE) (Option code: H08).
当电动机的接线盒位置与其它部件冲突时,可以将接线盒从驱动端移到非驱动端(选件号:H08)。
The data on that hard drive is dangerous, a threat to the entire Research program. These guys in Detroit weaponized a piece of computer code.
该硬盘里的数据极其危险,对整个探索者项目程序存在威胁。底特律这些人把一段代码变成了武器。
The article describes in detail the progress of the type of point machine and drive the progress of the electrical code.
文章详细描述了进步点机的类型和驱动进步电机的代码。
The article describes in detail the progress of the type of point machine and drive the progress of the electrical code.
文章详细描述了进步点机的类型和驱动进步电机的代码。
应用推荐