我们仍然享有使用纸质图书和其它模拟类媒体的原有自由。
We still have the same old freedoms in using paper books and other analog media.
我已经试着用它似乎只是嘲笑的接口,但我还想模拟类。
I already tried NMock2 it seems that it only mocks the interfaces but I also want to mock classes.
当您运行测试时,通常首先将Factory开关设置成返回模拟类。
When you run your tests you will usually begin by setting the Factory switch to return the simulated class.
它可分文本演示类、象再现类、程模拟类、理示意类、算绘图类等。
It can be classified into different categories, such as text demonstration, phenomenon reappearing, procedure simulation, principle illustration, calculating and drawing, etc.
将面向对象思想应用于化工过程模拟领域,提出了为重用而系统地建立化工过程模拟类库的思想。
Object oriented technology is used to chemical process simulation, and the idea of developing a class library for chemical process simulation is provided.
文中给出了化工过程模拟类库应具有的基本特征( 设计标准) , 即正确性、一致性、扩展性和重用性。
The principal characters of the library including reliability, consistency, expansibility and reuse are presented in this work.
它提供了许许多多的不同玩游戏的方法以及修改游戏的手段,对于太空模拟类游戏的爱好者来说,这款游戏提供了一个富有特色的模板。
Offering a wide range of ways to play and modify the game, it provides a unique feature packed template for space-sim fans to engage in.
有许多其它常规函数和常量用于控制模拟的运行,但重要的概念都与这些类结合在一起。
A number of other general functions and constants are used to control the run of a simulation, but the important concepts are tied to the classes.
该库提供的Monitor类对记录模拟措施是个有用的工具,但您也可以通过您想使用的其它任何技术来记录事件。
The provided Monitor class is a useful tool for logging simulation measures, but you could record events by any other technique you wished also.
在您理解了基本的SDAO实现之后,就可以研究其它使用模拟DAO (DefaultDAO)类的方法。
Once you understand the basic SDAO implementation, you can explore other ways of working with the simulated DAO (DefaultDAO) class.
清单3所示的MockupDB是个单体类,模拟客户订单的数据库。
MockupDB, illustrated in Listing 3, is singleton class that simulates a database of customer orders.
注意:Customer_Factory类本身是模拟的一部分—它是一个进程。
Notice that the Customer_Factory class is itself part of the simulation — it is a process.
用于扩展函数的父类(以及模拟多个继承的“混合”类)。
A parent class to extend function from (plus any "mix-in" classes to simulate multiple inheritance).
创建一个模拟对象类作为具体类中的一个子类。
Create a mock object class as a subclass of the concrete class.
想要模拟一个类,您必须定义一个函数。
更重要的是,如何在我自己的类中模拟此功能?
More importantly, how can I mimic this functionality in my own classes?
我们需要创建三个模拟对象类。
只要有针对类使用的对象的方法执行,简单的模拟期望就足以测试那些执行。
As long as there are method executions against objects the class USES, simple mock expectations are sufficient to test those executions.
有时您可能需要开发更复杂的模拟对象类,因为他们会带给您额外的收益。
Sometimes you may want to develop much more complex mock object classes because they will give you additional benefits.
已有的模拟对象类可以再度使用,稍做修改就可以用于未来的测试。
The mock object classes we have can be reused and enhanced for future tests with minimal effort.
我们大约需要编写50行代码来真正执行我们在模拟对象类中所需的行为。
We had to write approximately 50 lines of code that actually implemented the behavior we needed in our mock object classes.
第二个选择是模拟验证行为并将测试类保留在单元目录中。
The second option is to mock out the validation behavior and leave the test in the unit directory.
幸运的是,模拟J VM在运行应用程序的主类时所做的工作是相当容易的。
Fortunately, it's pretty easy to emulate the work done by the JVM in running the main class of your application.
当然,许多模拟经营类游戏都提供了同样有效的练习,来提高你管理大项目的能力和同时处理多个可变因素的能力——从预算工资到股票债券等任何事情。
And of course many Sim or Tycoon games offer equally effective practice in managing big projects and juggling multiple variables — everything from budgets and salaries to stocks and bonds.
要使这种技术在实际工作中有效,需要能够将程序中的“实际”dao类替换成新的“模拟”dao类。
To make this work in real life, we need to be able to replace the "real" DAO class with the new "simulated" DAO class in our program.
模拟图描绘了类地行星,有岩石表面、海洋和大气。
This artist's depiction shows a possible Earth-like planet with a rocky surface, oceans and an atmosphere. See more space tourism images.
模拟具体类和接口的能力。
FloatingDock类的目标是模拟Windows 的任务栏,它既允许在上面添加组件,也允许把自己停靠在屏幕的某个区域上。
The FloatingDock class aims to mimic the Windows Taskbar, by both allowing components to be added to it and by docking itself to a region of the screen.
例如,当您将一个域类保存到模拟表在中时,会像在实际应用程序中一样填充id字段。
For example, when you save a domain class to a mock table, the id field is populated as it would be in a live application.
例如,当您将一个域类保存到模拟表在中时,会像在实际应用程序中一样填充id字段。
For example, when you save a domain class to a mock table, the id field is populated as it would be in a live application.
应用推荐