white學習13(官方網站的內容),介紹White.NUnit

White.NUnit

This dll can be used for doing verification in automated tests.

Verify/Assert
Both of these perform assertions of some kind. Verify doesn’t cause the test to immediately fail while assert does that. There are reasons to use both.
Verify can be used when you want to collect all the failures and fail the test in the end. This makes it easier to fix the problems or report them.
Assert should be used when there is no point in continuing with the test if certain condition is not met.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章