单词 | assert statement |
释义 | 例句释义: 断言语句 1. When the test ran, no Assert statement produced a Failed result, but at least one Assert. Inconclusive statement was satisfied. 测试运行时,没有任何Assert语句生成的结果为“未通过”,但至少满足了一个Assert.Inconclusive语句。 msdn2.microsoft.com 2. This problem can be caused when you place important code in an ASSERT statement to verify that it performs correctly. 这个问题可能是因为您将重要的程式码置于ASSERT陈述式中以验证是否正确执行而导致的。 msdn.microsoft.com 3. A test fails if it times out, throws an unexpected exception, or contains an Assert statement that produces a Failed result. 如果测试超时,引发意外的异常,或包含生成了Failed结果的Assert语句,则该测试失败。 msdn2.microsoft.com 4. In another words, a unit test without an Assert statement will produce a Pass result every time it is run. 换句话说,没有Assert语句的单元测试在每次运行时都会产生一个“通过”结果。 msdn2.microsoft.com 5. When the test ran, at least one Assert statement produced a result of Failed, or the test threw an unexpected exception. 测试运行时,至少一个Assert语句生成的结果为“未通过”,或测试引发了意外的异常。 msdn2.microsoft.com 6. Verify that it returns true, and use and Assert statement to fail the test if the redirection fails. 确认该调用返回true值;如果重定向失败,则使用Assert语句使测试失败。 msdn2.microsoft.com 7. Compare actual with expected in an Assert statement. 在Assert语句中比较actual和expected。 msdn2.microsoft.com 8. Another alternative is to use an Assert statement instead of the Stop statement. 另一种方法是使用Assert语句,而不使用Stop语句。 msdn2.microsoft.com 9. You can verify this by calling the assert statement on the last line. 这一点可以通过在最后一行上调用assert语句进行验证。 www.ibm.com 10. Even when you use Trace. : : . Assert, you might still want to avoid placing function calls inside an Assert statement. 即使在使用Trace.::.Assert时,也需要避免将函数调用放置到Assert语句中。 msdn2.microsoft.com 1. If a test has both an ExpectedException attribute and an Assert statement, either one can cause the test to fail. 如果测试既有ExpectedException属性又有Assert语句,则其中的任一因素都可能导致测试失败。 msdn2.microsoft.com 2. More than 100 testcase and 10 assert statement were developed. 一共开发出100多条测试向量,10条断言语句。 www.boshuo.net 3. The assert statement was added in version 1. 4. assert语句是在版本1.4中加入的。 www.ibm.com 4. If you want an Assert statement that always breaks execution in the Debug version, you can do this 如果想让Assert语句总是在调试版本中中断执行,可以这样做 msdn2.microsoft.com |
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。