我们仍然享有使用纸质图书和其它模拟类媒体的原有自由。
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.
另外,研究人员模拟的是一个碳氢链在水中的情况,并未告诉我们脂类之间相互作用的热力学情况。
In addition, these are simulations of a single hydrocarbon chain in water, and so they don't tell us about the energetics of lipid-lipid interactions.
有许多其它常规函数和常量用于控制模拟的运行,但重要的概念都与这些类结合在一起。
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.
通过为LoadTest提供这两类计时器,可以更真实地模拟用户负载。
By providing these to a LoadTest, you can more realistically simulate user load.
上述代码定义了Customer类的操作,但我们需要在运行模拟之前,创建一些实际的顾客对象。
The above code defines what a Customer class does, but we need to create some actual customer objects before we run a simulation.
该库提供的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.
用于扩展函数的父类(以及模拟多个继承的“混合”类)。
A parent class to extend function from (plus any "mix-in" classes to simulate multiple inheritance).
只要有针对类使用的对象的方法执行,简单的模拟期望就足以测试那些执行。
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.
模拟对象将模仿出于指导代码执行的惟一目的而编写的类的行为,以便它在测试时符合代码执行要求。
Mock objects mimic the behavior of classes written with the sole purpose of guiding code execution so that it falls within those areas under test.
我们大约需要编写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.
客户端服务层定义了具体的实现类,负责从指示板传递数据、生成请求对象和调用特定的模拟器服务。
The client service layer defines the implementation classes responsible for taking the data passed from the dashboard, creating the request objects, and invoking a specified simulator service.
当然,许多模拟经营类游戏都提供了同样有效的练习,来提高你管理大项目的能力和同时处理多个可变因素的能力——从预算工资到股票债券等任何事情。
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.
异丙酚一类的药物能够作用于这类接收GABA的神经末梢,通过模拟和增强GABA引起的效果,起到抑制细胞活性的作用。
Drugs like propofol act on these GABA a receptors, mimicking and enhancing the effects of GABA, which inhibits cellular activity.
模拟图描绘了类地行星,有岩石表面、海洋和大气。
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.
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.
应用推荐