Exemplo n.º 1
0
        public void Execute(IReceiveTestResult observer)
        {
            this.observer = observer;

            var finder = new SpecFinder(SandboxedAssembly.GetTypes(), "");
            var cb = new ContextBuilder(finder, new Tags());

            cb.Contexts()
                .Build()
                .ForEach(context => context.Run(this, false));
        }
Exemplo n.º 2
0
        public void Execute(IReceiveTestResult observer)
        {
            this.observer = observer;

            var finder = new SpecFinder(SandboxedAssembly.GetTypes(), "");
            var cb     = new ContextBuilder(finder, new Tags());

            cb.Contexts()
            .Build()
            .ForEach(context => context.Run(this, false));
        }
Exemplo n.º 3
0
        public void Execute(IReceiveTestResult observer, string[] testNames)
        {
            this.observer = observer;

            var examples = new HashSet<string>(testNames);

            var finder = new SpecFinder(SandboxedAssembly.GetTypes(), "");
            var cb = new ContextBuilder(finder, new Tags());

            cb.Contexts()
                .Build()
                .SelectMany(c => c.AllExamples())
                .Where(example => examples.Contains(example.FullName()))
                .ForEach(example => example.Context.Run(this, false, example.Context.GetInstance()));
        }
Exemplo n.º 4
0
        public void Execute(IReceiveTestResult observer, string[] testNames)
        {
            this.observer = observer;

            var examples = new HashSet <string>(testNames);

            var finder = new SpecFinder(SandboxedAssembly.GetTypes(), "");
            var cb     = new ContextBuilder(finder, new Tags());

            cb.Contexts()
            .Build()
            .SelectMany(c => c.AllExamples())
            .Where(example => examples.Contains(example.FullName()))
            .ForEach(example => example.Context.Run(this, false, example.Context.GetInstance()));
        }
Exemplo n.º 5
0
        public void Execute(IReceiveTestResult observer, string[] testNames)
        {
            this.observer = observer;

            var selectedExamples = new HashSet<string>(testNames);

            var finder = new SpecFinder(SandboxedAssembly.GetTypes(), "");
            var cb = new ContextBuilder(finder, new Tags());

            ContextCollection contextCollection = cb.Contexts().Build();

            FilterOutNonSelectedExamples(contextCollection, selectedExamples);

            contextCollection.ForEach(context =>
            {
                context.Run(this, false);
            });
        }