用代码评审解释这一点可能需要点技巧。
不过现在,我们有机会,用代码实现它。
But now, there is an opportunity for us to implement this in code.
简单地说,单元测试是用代码测试代码。
Simply put, unit testing means writing code to test other code.
只是用代码写在窗户进入。
用代码行来衡量开发进度,无异于用重量来衡量制造飞机的进度。
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
这段代码是做什么用的?
让我用一些样本代码来阐述这些要点。
运行这些转换并且用输出语言创建代码。
Run the transformations and create code in the output language.
用一个代码返回值取代这个记录搜索值
Replace the recorded search value with a code returned value.
可以用定制代码实现这些最后的检查。
However, you can implement these last checks with custom code.
打开该文件并且添加用粗体显示的代码,如下所示。
语言代码用小写。
然我们看看怎样用,这个函数和代码解决这个问题。
So let's actually see how we solve this with this function with actual code.
用示例代码转至目录,运行发送方和接收方程序。
Go to the directory with the sample code, and run the sender and receiver.
为所述的用例提供样例代码。
国家代码用大写。
用纯粹的RELAX NG代码也不能验证这些约束。
You cannot verify any of these constraints in pure RELAX NG code, either.
查看样例代码,了解一个用例。
请参阅下面用蓝色突出显示的附加代码。
但是,在实践中,用这样的代码可能太繁琐了。
用清单23中的代码验证文件启动。
Verify that the file starts with code as shown in Listing 23.
需要引起注意的代码用粗体显示。
用清单2中的代码代替第8和第9行。
解释用例的样例代码。
您可以用所提供的样本代码来熟悉sdk。
Sample code is provided that you can use to get familiar with the SDK.
用客户机代码测试服务。
注解:用更少的代码做更多工作。
清单3显示了这一用例的代码。
用清单4中的代码替换上述代码。
可以用相同的代码来驱动Web服务和视图。
You can use the same code to drive your Web service and your view.
应用推荐