You can even make tests a bit more granular and test a series of methods to ensure they meet a certain time threshold.
甚至可以测试得更加细致一些,可以测试一系列方法来确保它们满足特定的时间限制。
To make tests into objects, they used the Command pattern, which encapsulates "a request as an object, thereby letting you […] queue or log requests."
为了使测试成为对象,他们使用了 Command 模式,该模式“将请求封装成对象,从而可以……建立请求队列或者记录请求”。
Unit tests don't deal with databases, file systems, or anything else that would tend to make tests run longer; consequently, unit tests can be written from day one.
单元测试不处理数据库、文件系统或任何可能延长测试运行时间的内容;因而,从第一天就可以编写单元测试。
Doctors can collect it with a needle. But people who donate marrow must first have tests to make sure they are a good match for the patient.
VOA: special.2009.12.16
Now, you know how to make women do worse on math tests too, like that, and this has a demonstrative effect.
你们也知道怎么让女同学考数学考不好,像这样,这样的作用非常显易而见。
They want to make the tests for the... they get into another grade, a little harder.
他们想通过考试……让孩子们升入下一个年级,并提升一点考试难度。
应用推荐