This can be as simple as invoking the base class's factory method and asserting that the returned object is of the correct type. For example.
这与调用基类的工厂方法并断言返回对象具有正确类型一样简单。
I can still verify the application's functionality by obtaining a handle to the output Label instance and asserting that its text is the definition for a given word.
我还可以通过获得输出Label实例的句柄,断言其文本是否是给定单词的定义,从而验证应用程序的功能。
This vision of the founders served as a basis for asserting that freedom was a national moral imperative, and that the United States Constitution was an antislavery document.
国父们的这种远见成为了主张自由是国家道德义务的基础,美国宪法是一份反奴隶制的文件。
such as Wisconsin Representative Paul Ryan, kept up their criticism, accusing President Obama of fiscal irresponsibility and asserting that his plans will greatly increase deficit spending.
VOA: standard.2009.03.24
However,Republicans and Democratic opponents said the resolution itself was biased, asserting that by passing it the House would be demonstrating it wants to cover up the truth about actions in Gaza by both Hamas and Israel.
VOA: standard.2009.11.04
应用推荐