예제 #1
0
 protected override IEnumerable <ITestCommand> EnumerateTestCommands(Xunit.Sdk.IMethodInfo method)
 {
     if (IsUserAdministrator() == false)
     {
         return(new[] { new SkipCommand(method, method.Name, "Cannot be run without admin permissions") });
     }
     return(base.EnumerateTestCommands(method));
 }
예제 #2
0
 protected override System.Collections.Generic.IEnumerable <Xunit.Sdk.ITestCommand> EnumerateTestCommands(Xunit.Sdk.IMethodInfo method)
 {
     return(base.EnumerateTestCommands(method).Select(enumerateTestCommand => new ActionTestCommandWrapper(enumerateTestCommand, o =>
     {
         ((ReplicateToSql)o).ConnectionString = connectionStringSettings;
     })));
 }
예제 #3
0
 protected override System.Collections.Generic.IEnumerable <Xunit.Sdk.ITestCommand> EnumerateTestCommands(Xunit.Sdk.IMethodInfo method)
 {
     return(base.EnumerateTestCommands(method)
            .Select(enumerateTestCommand =>
                    new ActionTestCommandWrapper(enumerateTestCommand, o => ((PeriodicBackupTests)o).SetupAws(AwsAccessKey, AwsSecretKey))));
 }