From 686404bb7f42d326bc04e43e152d7564fb6ca49a Mon Sep 17 00:00:00 2001 From: Fredric Silberberg Date: Fri, 2 Jun 2017 16:25:17 -0700 Subject: [PATCH] Remove from watch when removed from the program. --- xunit.runner.wpf/ViewModel/MainViewModel.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/xunit.runner.wpf/ViewModel/MainViewModel.cs b/xunit.runner.wpf/ViewModel/MainViewModel.cs index 4151699..a549553 100644 --- a/xunit.runner.wpf/ViewModel/MainViewModel.cs +++ b/xunit.runner.wpf/ViewModel/MainViewModel.cs @@ -462,6 +462,7 @@ namespace Xunit.Runner.Wpf.ViewModel { foreach (var assembly in assemblies.ToList()) { + assemblyWatcher.RemoveAssembly(assembly.FileName); RemoveAssemblyTestCases(assembly.FileName); Assemblies.Remove(assembly); }