Inheritance: ExampleNode, IExampleContainer
        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)
 {
 }
Esempio n. 3
0
 public Example(string name, Expression<Func<bool>> spec, ExampleContainer parent, Spec containingSpec)
     : base(parent, name,  containingSpec)
 {
     Name = name;
     _action = BuildAction(spec);
 }
Esempio n. 4
0
 public Example(string name, Action action, ExampleContainer parent, Spec spec)
     : base(parent, name, spec)
 {
     _action = action;
 }
Esempio n. 5
0
 public void AddDescribe(ExampleContainer exampleContainer)
 {
     _describes.Add(exampleContainer);
 }
Esempio n. 6
0
 protected ExampleContainer(string name, ExampleContainer parent, Spec spec)
     : base(parent, name, spec)
 {
     ContainingSpec = spec;
 }
Esempio n. 7
0
 protected ExampleNode(ExampleContainer parent, string name, Spec spec)
 {
     Parent = parent;
     Name = name;
     ContainingSpec = spec;
 }
Esempio n. 8
0
        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();
        }