Next, I actually mock the member class and mock a finder that returns mock_member.
接下来,对这个member类和能返回mock_member的查找器进行mock。
Back inside the test class, we define the MockTransaction class as a member class, as shown in Listing 5.
后退到测试类内部,我们将mocktransaction类定义为成员类,如清单5中所示。
The following term, I decided to be a member of an ASL class.
接下来的学期,我决定成为美国手语班的一员。
As a member of the middle class, Gaskell could hardly help approaching working-class life as an outside observer and a reporter, and the reader of the novel is always conscious of this fact.
作为中产阶级的一员,Gaskell不得不以旁观者和记者的身份接近工人阶级的生活,而小说的读者也总是意识到这一点。
He said that Jeff now was a member of the class and they should work together.
他说杰夫现在是班里的一员了,他们应该一起合作。
Well, I could add a new member field to the class and use that instead of a local variable.
是的,我可以在类中添加一个新的成员字段,并使用这个字段而不是局部变量。
If a given bug is applicable to more than one member function within a class, then it should be documented for the class instead of solely for the function.
如果某一特定的错误可适用于一个类中的多个成员函数,那么应该针对该类而不是单独为该函数编制文档。
By keeping it as a member field in this class, you can safely cache these expensive resources.
通过将它保持为这个类中的一个成员字段,您可以安全地缓存这些昂贵的资源。
This is one approach that enables the client to determine what member of the class hierarchy it receives, and process the additional information in the subclass accordingly.
这是一种可以使客户端能确定他接收到的是类层次中的什么成员的方法,并相应处理子类中的附加信息。
This header file should ideally contain all the class definitions, member functions, and variables.
在理想情况下,头文件应该包含所有类定义、成员函数和变量。
When I add new features to a class, each new member can see the other visible members, so the theoretical complexity increases.
在类中添加新特性时,每个新成员都能看到其他可见的成员,这增加了理论上的复杂性。
A member function with protected visibility can be invoked by any member function in the class in which it is defined or any subclasses of that class.
具有受保护可视性的成员函数可以由与该成员函数在同一个类中定义或其任何子类中定义的其它任何成员函数调用。
The class above has several member variables.
上述类有多个成员变量。
It was more reliable at finding ownership relationships when the variables were declared as member variables of the class.
当类的变量被声明为类的成员变量时,找到所有权关系是更加可靠的。
New refactorings - There is a new extract class refactoring, which extracts a group of variables into a class and preserves member access.
新的重构——有一个新的提取类重构功能,它把一组变量提取到一个类中,并且保留了成员访问函数。
A member function with private visibility can only be invoked by other member functions in the class in which it is defined, but not in the subclasses.
具有私有可视性的成员函数只能由与该成员函数在同一个类中定义的其它成员函数调用,而在子类中的成员函数不能调用该成员函数。
If at any time a resource acquires the right property with a value of the right class, it automatically becomes a member of this virtual class, without needing to be explicitly stated as such.
如果在任何时候资源获得具有适当类值的适当特性,那么无需显式声明,它会自动成为这一虚拟类的成员。
This descriptor is included as a member of the service class.
这个描述符被包括在服务类成员之中。
Embedded documents act like member objects within a class.
嵌入的文档就像类里的成员对象。
Note that when you try to access an argument of a class member function the actual argument count starts from 2 instead of 1.
注意,在访问类成员函数的参数时,实际的参数编号从2而不是从1 开始。
Role-based authorization provides access to resources based on the fact that the user is a member of some class of users.
基于角色的授权基于用户是某类用户的成员这一事实提供对资源的访问。
This example shows the C++ source code that contains a non-class function, a Private member function of a class, and a Public member function of a class.
这个示例使用的 C++源代码包含一个非类函数、类的一个私有成员函数和一个公共成员函数。
Virtually no member of the middle class, which includes just about all expatriate workers, is without at least one all-night guard.
确切地讲,包括在海外工作的人在内的中层阶级都会有至少一个通宵保安。
Moving member within the class hierarchy.
在类继承关系内移动成员。
This class member will contain the application object that stores employee data or organizational data depending on what the TreeItem widget represents.
根据TreeIte m部件代表的内容不同,这个类成员将包含存储职员数据或组织数据的应用程序对象。
In the class member section, I define each vertex color in VERTEX_COLORS.
在类成员部分的VERTEX_COLORS中定义了各顶点颜色。
Observe that the implementation emits trace events using the m_logger member variable from the base class.
观察该实现使用基础类中m_logger成员变量发出的跟踪事件。
These elements match up to the member variables of the RestaurantDetails class.
这些元素可以与restaurantdetails类的成员变量相匹配。
These elements match up to the member variables of the RestaurantDetails class.
这些元素可以与restaurantdetails类的成员变量相匹配。
应用推荐