Exemple #1
0
 public TargetConstraint(TestDefinition testDefinition)
 {
     if (typeof(IApplyToTarget).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
 }
 public ApplicationConstraint(TestDefinition testDefinition)
 {
     if (typeof (IApplyToApplication).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
 }
 public EnvironmentConstraint(TestDefinition testDefinition)
 {
     if (typeof (IApplyToEnvironment).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
 }
 public ApplicationConstraint(TestDefinition testDefinition)
 {
     if (typeof(IApplyToApplication).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
 }
 public EnvironmentConstraint(TestDefinition testDefinition)
 {
     if (typeof(IApplyToEnvironment).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
 }
 public TargetConstraint(TestDefinition testDefinition)
 {
     if (typeof (IApplyToTarget).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
 }
Exemple #7
0
 public TagConstraint(TestDefinition testDefinition)
 {
     if (typeof (IHaveTags).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
     else
     {
         _tags = new string[0];
     }
 }
Exemple #8
0
 public TagConstraint(TestDefinition testDefinition)
 {
     if (typeof(IHaveTags).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
     else
     {
         _tags = new string[0];
     }
 }