2

I am using Microsoft Visual Studio Community 2022 (64-bit) version 17.2.4 with MSTest.TestFramework and TestAdapter version 2.2.10. When I start a test in debug mode, I would like it to break when a UnitTesting Assert Fails. Can someone tell me how to configure MSTest or my TestMethod or Visual Studio to do this?

If I need to switch to another test framework, that's fine, as long as it supports Visual Studio debugging.

d ei
  • 493
  • 4
  • 16
  • 1
    [This is old](https://stackoverflow.com/questions/4826241/break-the-debugger-on-assertion-failed), but maybe still a thing. Yay google. – Crowcoder Jul 02 '22 at 23:18
  • First answer works! My google-foo must be off, I looked for quite a while but missed this one. If you want to use it (crediting Daryl Hoffman) to answer my question, I'll accept it. – d ei Jul 04 '22 at 00:47
  • For C++/Native Unit tests see this - https://stackoverflow.com/a/76635350/981766 – Sahil Singh Jul 07 '23 at 08:47

0 Answers0