title: How to call the Assert::ExpectException correctly?
body: <p>I'm writing some unit tests using Microsoft's CppUnitTestFramework.</p>
  
  <p>I want to test, if the method I call throws the correct exception. My code is: </p>
  
  <pre><code>TEST_METHOD(test_for_correct_exception_by_input_with_whitespaces)
  {
              std::string input{ "meet me at the corner" };
              Assert::ExpectException&lt;std::invalid_argument&gt;(AutokeyCipher::encrypt(input, primer));              
  }
  </code></pre>
  
  <p>In the link below I wrote the call similar to the last answer: </p>
  
  <p><a href="https://stackoverflow.com/questions/18520493/function-pointers-in-c-cx">Function Pointers in C++/CX</a></p>
  
  <p>When compiling it, I get the <strong>C2064</strong> Error: term does not evaluate to a function taking 0 arguments</p>
  
  <p>Why isn't that working?</p>