From b72f2ea740e601900855f70963e7c3bc5d7fcd5e Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Fri, 19 Jan 2018 17:31:35 +0000 Subject: [NUnit] Fix load error not being removed from Unit Tests window After a load error occurs the Unit Tests window displays an error icon and an error tooltip. After fixing the load error the error icon and tooltip would not be removed from the Unit Tests window until after the project was closed and re-opened. --- .../MonoDevelop.UnitTesting.NUnit/NUnitAssemblyTestSuite.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main/src/addins/MonoDevelop.UnitTesting.NUnit') diff --git a/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitAssemblyTestSuite.cs b/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitAssemblyTestSuite.cs index 67852fee35..31fdbe851f 100644 --- a/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitAssemblyTestSuite.cs +++ b/main/src/addins/MonoDevelop.UnitTesting.NUnit/MonoDevelop.UnitTesting.NUnit/NUnitAssemblyTestSuite.cs @@ -209,6 +209,8 @@ namespace MonoDevelop.UnitTesting.NUnit Runtime.RunInMainThread (delegate { if (ld.Error != null) this.ErrorMessage = ld.Error.Message; + else + ErrorMessage = string.Empty; AsyncCreateTests (ld); }); }; -- cgit v1.2.3