title: How can I pass or fail a test according the assert method result webdriver C#?
body: <p>I am trying to pass or fail a test according the assert method result. If one element (in case a dropdown) is displayed in a modal, the tests have to fail automatically.</p>
  <p>Another scenario is if the element is not displayed, but it should appear.</p>
  <p>What would be some sample code to solve this problem?</p>
  <p>I'm looking for some answers here and don't find if it is possible to pass or fail a test depending the result of the assertion method, the result have to be displayed in the Test Explorer menu. I'm using NUnit.</p>