diff --git a/NUnitLite/TouchRunner/TouchRunner.cs b/NUnitLite/TouchRunner/TouchRunner.cs index 4cf2b09..aefe1c0 100644 --- a/NUnitLite/TouchRunner/TouchRunner.cs +++ b/NUnitLite/TouchRunner/TouchRunner.cs @@ -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;