Skip to content

Commit

Permalink
[TouchRunner] do not use FinallyDelegate in Runner, because it requir…
Browse files Browse the repository at this point in the history
…es remoting API to be available
  • Loading branch information
lewurm committed Feb 19, 2018
1 parent b5b227e commit 9f69aa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NUnitLite/TouchRunner/TouchRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,11 @@ public TestResult Run (Test test)
TestExecutionContext current = TestExecutionContext.CurrentContext;
current.WorkDirectory = Environment.CurrentDirectory;
current.Listener = this;
#if __IOS__ || __WATCHOS__ || __TVOS__
WorkItem wi = test.CreateWorkItem (filter, null);
#else
WorkItem wi = test.CreateWorkItem (filter, new FinallyDelegate ());
#endif
wi.Execute (current);
Result = wi.Result;
return Result;
Expand Down

0 comments on commit 9f69aa2

Please sign in to comment.