Beispiel #1
0
 public TargetConstraint(TestDefinition testDefinition)
 {
     if (typeof(IApplyToTarget).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
 }
Beispiel #2
0
 public ApplicationConstraint(TestDefinition testDefinition)
 {
     if (typeof (IApplyToApplication).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
 }
Beispiel #3
0
 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;
     }
 }
Beispiel #7
0
 public TagConstraint(TestDefinition testDefinition)
 {
     if (typeof (IHaveTags).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
     else
     {
         _tags = new string[0];
     }
 }
Beispiel #8
0
 public TagConstraint(TestDefinition testDefinition)
 {
     if (typeof(IHaveTags).IsAssignableFrom(testDefinition.TestType))
     {
         TestDefinition = testDefinition;
     }
     else
     {
         _tags = new string[0];
     }
 }