public override void Populate(
			GuidTestTreeNodeDictionary nodes, 
			TestTreeNode rootNode, 
			MbUnit.Core.Collections.RunPipeStarterCollection pipes
			)
		{
			if (rootNode==null)
				throw new ArgumentNullException("rootNode");
			if (pipes==null)
				throw new ArgumentNullException("pipes");

            if (this.parentNode == null)
            {
                this.parentNode = new TestTreeNode("Authors", TestNodeType.Populator);
                nodes.Add(this.parentNode);
                rootNode.Nodes.Add(this.parentNode);
                // add unknown author
                this.anonymous = this.addAuthor(nodes, "Anonymous");
            }

            foreach(RunPipeStarter pipeStarter in pipes)
			{
				// get author attribute
				TestTreeNode node = null;
                AuthorAttribute author = (AuthorAttribute)TypeHelper.TryGetFirstCustomAttribute(
                        pipeStarter.Pipe.FixtureType, typeof(AuthorAttribute));
                if (author!=null)
                	node = addAuthor(nodes,author.Name);
				else
					node = anonymous;

				TestTreeNode fixtureNode = addFixtureNode(nodes,node,pipeStarter);

				CreatePipeNode(nodes,fixtureNode,pipeStarter);
			}
		}
Esempio n. 2
0
        /// <summary>
        /// Returns the invoker class to run the test the given number of times.
        /// </summary>
        /// <param name="wrapper">The invoker currently set to run the test.</param>
        /// <returns>A new <see cref="RepeatRunInvoker"/> object wrapping <paramref name="wrapper"/></returns>
		public override IRunInvoker GetInvoker(MbUnit.Core.Invokers.IRunInvoker wrapper) 
		{
			return new RepeatRunInvoker(wrapper,count);			
		}
 public override IRunInvoker GetInvoker(MbUnit.Core.Invokers.IRunInvoker wrapper)
 {
     return new IgnoreRunInvoker(wrapper);
 }
Esempio n. 4
0
 public override void Reflect(MbUnit.Core.Invokers.RunInvokerTree tree, MbUnit.Core.Invokers.RunInvokerVertex parent, Type t)
 {
     throw new NotImplementedException();
 }