Example #1
0
        static void OnExampleStarted(IExecutionSink sink, string jsonArg)
        {
            DiscoveredExample example;

            try
            {
                example = JsonConvert.DeserializeObject <DiscoveredExample>(jsonArg);
            }
            catch (Exception ex)
            {
                throw new DotNetTestNSpecException(unknownArgumentErrorMessage
                                                   .With(runInteractiveMethodName + ": " + nameof(OnExampleStarted), jsonArg), ex);
            }

            sink.ExampleStarted(example);
        }