c# - Resharper/Nunit AssertionException was unhandled by user code -


i trying set unit testing in solution visual studio enterprise 2015 , resharper ultimate 2015.2.

i created new unit test project in solution , used nuget install nunit 2.6.4.

debugging unit test through resharper throws assertionexception. expected catch exception , report it.

for example:

[testfixture] class asserttest {     [test]     public void istrue()     {         assert.true(false);     } } 

is there additional configuration needs done integrate resharper , nunit?

perhaps need "unit test session" resharper. get it ctrl+alt+r. there can right click , debug unit tests

on second reading of question wonder if scenario you're describing isn't expected? in test want assert true. if is, jolly-good -> continue. if isn't, you'd wanna know, hence assertionexception.

my point is, tests should tell if not expected. , assert.true(false) doing that.

if wanna log, surround assertions try-catch, log exception , throw it. should have test fail, if not expected.

hope helpful.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -