VerifyBindingAvailable() static private method

Called by helpers that only work if this binding is in place.
static private VerifyBindingAvailable ( SpecFlowContext context ) : void
context SpecFlowContext The SpecFlow context.
return void
Ejemplo n.º 1
0
 private static async Task RunAndStoreExceptionsAsync(this SpecFlowContext context, Func <Task> action, string key)
 {
     TeardownExceptionsBindings.VerifyBindingAvailable(context);
     try
     {
         await action().ConfigureAwait(false);
     }
     catch (Exception x)
     {
         StoreExceptionInContext(context, x, key);
     }
 }
Ejemplo n.º 2
0
 private static void RunAndStoreExceptions(this SpecFlowContext context, Action action, string key)
 {
     TeardownExceptionsBindings.VerifyBindingAvailable(context);
     try
     {
         action();
     }
     catch (Exception x)
     {
         StoreExceptionInContext(context, x, key);
     }
 }