private void ExecuteIgnored(ExampleContainer container, ITestResultListener listener) { foreach (ExampleContainer exampleContainer in container.ExampleContainers) { ExecuteIgnored(exampleContainer, listener); } foreach (Example example in container.Examples) { listener.Ignored(example); } }
public ActiveExampleContainer(string name, ExampleContainer parent, Spec spec) : base(name, parent, spec) { }
public Example(string name, Expression<Func<bool>> spec, ExampleContainer parent, Spec containingSpec) : base(parent, name, containingSpec) { Name = name; _action = BuildAction(spec); }
public Example(string name, Action action, ExampleContainer parent, Spec spec) : base(parent, name, spec) { _action = action; }
public void AddDescribe(ExampleContainer exampleContainer) { _describes.Add(exampleContainer); }
protected ExampleContainer(string name, ExampleContainer parent, Spec spec) : base(parent, name, spec) { ContainingSpec = spec; }
protected ExampleNode(ExampleContainer parent, string name, Spec spec) { Parent = parent; Name = name; ContainingSpec = spec; }
private void RunDescribe(Action spec, ExampleContainer exampleContainer) { if (CurrentDescribeExists()) { exampleContainer.Id = CurrentDescribe().Id + "/" + CurrentDescribe().ExampleContainers.Length.ToString("000"); CurrentDescribe().AddDescribe(exampleContainer); } else { exampleContainer.Id = GetType().FullName + "/" + _describes.Count.ToString("000"); _describes.Add(exampleContainer); } _idMap.Add(exampleContainer.Id, exampleContainer); _describeStack.Push(exampleContainer); spec(); _describeStack.Pop(); }