示例#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))));
 }