static void OnExampleCompleted(IExecutionSink sink, string jsonArg) { ExecutedExample example; try { example = JsonConvert.DeserializeObject <ExecutedExample>(jsonArg); } catch (Exception ex) { throw new DotNetTestNSpecException(unknownArgumentErrorMessage .With(runInteractiveMethodName + ": " + nameof(OnExampleCompleted), jsonArg), ex); } sink.ExampleCompleted(example); }