public static void OnAssemblyCleanup() { // To reduce integration test time, we want to reuse Visual Studio instances where possible. // Apex will automatically close VS only if the previous test failed, this shuts down Visual Studio // after all the tests have finished. _lastTest?.TryShutdownVisualStudioInstance(); }