public abstract bool IsMatch(TestUnit unit);
public override bool IsMatch(TestUnit unit) { return(_value); }
public override bool IsMatch(TestUnit test) { return(_regex.IsMatch(test.DisplayName)); }
bool ITestPlanFilter.IsMatch(TestUnit unit) { return(Items.Any(tag => tag.IsMatch(unit))); }
private static TestStatus PredeterminedStatus(TestUnit of) { return(TestUnit.ConvertToStatus(of).GetValueOrDefault(TestStatus.NotRun)); }
public CompositeNode(TestUnit unit, CompositeNode parent, TestContext initContext) : base(unit, initContext) { _parent = parent; }
internal static void Apply(this ITestPlanFilter filter, TestUnit unit, Action <TestUnit> action) { filter.Apply(unit, action, _ => {}); }
public override bool IsMatch(TestUnit unit) { return(Items.Any(p => p.IsMatch(unit))); }
private static void SealRecursive(TestUnit unit) { foreach (var c in unit.Children) { SealRecursive(c); } unit.Seal(); }
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; }
protected Node(TestUnit unit, TestContext initContext) { Unit = unit; InitContext = initContext; }
protected NodeExecutionContextBase(Node node, TestContext parent, TestUnit self, object testObject) : base(parent, self, testObject) { _node = node; }
public override bool IsMatch(TestUnit unit) { return(unit.Tags.Contains(_tag)); }
public override bool IsMatch(TestUnit test) { return(_items.All(m => m.IsMatch(test))); }
public override bool IsMatch(TestUnit unit) { return(!_inner.IsMatch(unit)); }
public override bool IsMatch(TestUnit test) { return(true); }
internal void SetParent(TestUnit p) { _parent = p; }
public override bool IsMatch(TestUnit test) { return(_wildcardPattern.IsMatch(test.DisplayName)); }
internal TestUnitStartedEventArgs(TestUnit unit) { _unit = unit; }
public DefaultNode(TestUnit unit, CompositeNode parent) : base(unit, parent, new DefaultTestContext(parent.InitContext, unit)) { _results = new TestUnitResults(unit); }