VerifyBindingAvailable() 정적인 개인적인 메소드

Called by helpers that only work if this binding is in place.
static private VerifyBindingAvailable ( SpecFlowContext context ) : void
context SpecFlowContext The SpecFlow context.
리턴 void
예제 #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);
     }
 }
예제 #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);
     }
 }