https://github.com/microsoft/testfx/blob/96f6b1cc6138cd5a3166355b54547bae6df0c2b4/src/Adapter/MSTestAdapter.PlatformServices/Discovery/UnitTestDiscoverer.cs#L71 To guarantee that the error will end up failing the test run, we should throw an exception.