예제 #1
0
 public abstract bool IsMatch(TestUnit unit);
예제 #2
0
 public override bool IsMatch(TestUnit unit)
 {
     return(_value);
 }
예제 #3
0
 public override bool IsMatch(TestUnit test)
 {
     return(_regex.IsMatch(test.DisplayName));
 }
 bool ITestPlanFilter.IsMatch(TestUnit unit)
 {
     return(Items.Any(tag => tag.IsMatch(unit)));
 }
예제 #5
0
 private static TestStatus PredeterminedStatus(TestUnit of)
 {
     return(TestUnit.ConvertToStatus(of).GetValueOrDefault(TestStatus.NotRun));
 }
예제 #6
0
 public CompositeNode(TestUnit unit, CompositeNode parent, TestContext initContext) : base(unit, initContext)
 {
     _parent = parent;
 }
예제 #7
0
 internal static void Apply(this ITestPlanFilter filter, TestUnit unit, Action <TestUnit> action)
 {
     filter.Apply(unit, action, _ => {});
 }
예제 #8
0
 public override bool IsMatch(TestUnit unit)
 {
     return(Items.Any(p => p.IsMatch(unit)));
 }
예제 #9
0
 private static void SealRecursive(TestUnit unit) {
     foreach (var c in unit.Children) {
         SealRecursive(c);
     }
     unit.Seal();
 }
예제 #10
0
 static bool IsLeaf(TestUnit t) {
     return t.Type == TestUnitType.Case
         || t.Type == TestUnitType.Theory
         || t.Type == TestUnitType.Fact;
 }
 internal TestUnitFinishedEventArgs(TestUnit unit, TestUnitResult result)
 {
     _unit   = unit;
     _result = result;
 }
예제 #12
0
 protected Node(TestUnit unit, TestContext initContext)
 {
     Unit        = unit;
     InitContext = initContext;
 }
예제 #13
0
 protected NodeExecutionContextBase(Node node, TestContext parent, TestUnit self, object testObject)
     : base(parent, self, testObject)
 {
     _node = node;
 }
예제 #14
0
 public override bool IsMatch(TestUnit unit)
 {
     return(unit.Tags.Contains(_tag));
 }
예제 #15
0
 public override bool IsMatch(TestUnit test)
 {
     return(_items.All(m => m.IsMatch(test)));
 }
예제 #16
0
 public override bool IsMatch(TestUnit unit)
 {
     return(!_inner.IsMatch(unit));
 }
예제 #17
0
 public override bool IsMatch(TestUnit test)
 {
     return(true);
 }
예제 #18
0
 internal void SetParent(TestUnit p)
 {
     _parent = p;
 }
예제 #19
0
 public override bool IsMatch(TestUnit test)
 {
     return(_wildcardPattern.IsMatch(test.DisplayName));
 }
예제 #20
0
 internal TestUnitStartedEventArgs(TestUnit unit)
 {
     _unit = unit;
 }
예제 #21
0
 public DefaultNode(TestUnit unit, CompositeNode parent) : base(unit, parent, new DefaultTestContext(parent.InitContext, unit))
 {
     _results = new TestUnitResults(unit);
 }