From 4103d5776a155fdd0cf5b0ebbdc94e933080f9dc Mon Sep 17 00:00:00 2001 From: pinzart90 Date: Fri, 19 Jan 2024 09:36:37 -0500 Subject: [PATCH] update --- test/DynamoCoreWpfTests/DynamoViewModelUnitTest.cs | 10 ---------- test/ViewExtensionLibraryTests/Setup.cs | 2 -- test/VisualizationTests/Setups.cs | 2 -- 3 files changed, 14 deletions(-) diff --git a/test/DynamoCoreWpfTests/DynamoViewModelUnitTest.cs b/test/DynamoCoreWpfTests/DynamoViewModelUnitTest.cs index 21c9de98b1e..8705685c2ef 100644 --- a/test/DynamoCoreWpfTests/DynamoViewModelUnitTest.cs +++ b/test/DynamoCoreWpfTests/DynamoViewModelUnitTest.cs @@ -1,10 +1,8 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; -using System.Windows.Threading; using Dynamo.Models; using Dynamo.Scheduler; using Dynamo.Selection; @@ -41,17 +39,10 @@ protected override DynamoModel GetModel() [SetUp] public override void Setup() { - Dispatcher.CurrentDispatcher.UnhandledException += CurrentDispatcher_UnhandledException; base.Setup(); StartDynamo(); } - private void CurrentDispatcher_UnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) - { - e.Handled = true; - System.Console.WriteLine($"PID {Process.GetCurrentProcess().Id} Unhandled exception thrown during test {TestContext.CurrentContext.Test.Name} with message : {e.Exception.Message}"); - } - public override void Cleanup() { try @@ -76,7 +67,6 @@ public override void Cleanup() } base.Cleanup(); - Dispatcher.CurrentDispatcher.UnhandledException -= CurrentDispatcher_UnhandledException; } private void RequestUserSaveWorkflow(object sender, WorkspaceSaveEventArgs e) diff --git a/test/ViewExtensionLibraryTests/Setup.cs b/test/ViewExtensionLibraryTests/Setup.cs index 35c386b8e0b..af7cc284259 100644 --- a/test/ViewExtensionLibraryTests/Setup.cs +++ b/test/ViewExtensionLibraryTests/Setup.cs @@ -1,8 +1,6 @@ using System; -using System.Diagnostics; using System.IO; using System.Reflection; -using System.Windows.Threading; using Dynamo.Utilities; using NUnit.Framework; diff --git a/test/VisualizationTests/Setups.cs b/test/VisualizationTests/Setups.cs index ef550347b0d..1d56d671c3d 100644 --- a/test/VisualizationTests/Setups.cs +++ b/test/VisualizationTests/Setups.cs @@ -1,8 +1,6 @@ using System; -using System.Diagnostics; using System.IO; using System.Reflection; -using System.Windows.Threading; using Dynamo.Utilities; using NUnit.Framework;