title: How to user Assert for methods with return type void in MSTest
body: <p>I have a method in my c# application similar to below.</p>
  
  <pre><code>public async Task SampleMethod()
  {
      try
      {
          //some code 
          await AnotherMethod();
          // some code
      }
      catch (Exception ex)
      {
          Console.Error.WriteLine(ex.Message.ToString());        
      }
  }
  </code></pre>
  
  <p>Now, I'm trying to write a unit testcase for the above method using MStest. I have written something as below.</p>
  
  <pre><code>[TestMethod]
  public async Task SampleMethodTest()
  {
      ClassName cn = new ClassName();
      await cn.SampleMethod();
   }
  </code></pre>
  
  <p>Now how do I know if the testcase failed or succeeded. How do I use Assert here?<br>
  Any help is highly appreciated.</p>