Best practice for debug Asserts during Unit testing

后端 未结 12 2206
执笔经年
执笔经年 2020-12-23 02:35

Does heavy use of unit tests discourage the use of debug asserts? It seems like a debug assert firing in the code under test implies the unit test shouldn\'t exist or the d

12条回答
  •  萌比男神i
    2020-12-23 02:52

    IMHO debug.asserts rock. This great article shows how to stop them from interrupting your unit test by adding an app.config to your unit testing project, and disabling the dialog box:

    
    
    
        
    
    

提交回复
热议问题