Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pinzart90 committed Jan 19, 2024
1 parent 3882214 commit 4103d57
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions test/DynamoCoreWpfTests/DynamoViewModelUnitTest.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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
Expand All @@ -76,7 +67,6 @@ public override void Cleanup()
}

base.Cleanup();
Dispatcher.CurrentDispatcher.UnhandledException -= CurrentDispatcher_UnhandledException;
}

private void RequestUserSaveWorkflow(object sender, WorkspaceSaveEventArgs e)
Expand Down
2 changes: 0 additions & 2 deletions test/ViewExtensionLibraryTests/Setup.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 0 additions & 2 deletions test/VisualizationTests/Setups.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 4103d57

Please sign in to comment.