Click here to Skip to main content
15,886,680 members
Articles / Web Development / ASP.NET

MbUnit : Generative Unit Test Framework

Rate me:
Please Sign up or sign in to vote.
4.70/5 (38 votes)
15 Apr 20046 min read 221.7K   496   120  
A new highly flexible unit test framework with new fixtures
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.573
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

namespace GUnit.Core.Runs
{
	using System;
	
	using GUnit.Core.Invokers;
	
	using QuickGraph.Concepts;
	using QuickGraph.Concepts.Modifications;
	using QuickGraph.Concepts.Serialization;
	
	/// <summary>
	/// This interface defines a type of test/non test run that is used
	/// to define the <see cref="TestFixturePatternAttribute"/> logic.
	/// </summary>
	public interface IRun : IGraphSerializable
	{
		/// <summary>
		/// Gets a descriptive name of the <see cref="IRun"/>
		/// </summary>
		/// <value>
		/// A descriptive name of the <see cref="IRun"/>
		/// </value>
		string Name {get;}
		
		/// <summary>
		/// Gets a value indicating the run is considered as a test or not.
		/// </summary>
		/// <value>
		/// true if the <see cref="IRun"/> instance is a test
		/// </value>		
		bool IsTest{get;}		

		/// <summary>
		/// Populates the <see cref="RunTree"/> logic graph with
		/// it's contribution.
		/// </summary>
		/// <param name="tree">logic execution tree</param>
		/// <param name="parent">parent vertex in the graph</param>
		/// <returns>Created <see cref="RunVertex"/> instance</returns>
		RunVertex ReflectLogic(RunTree tree, RunVertex parent);
		
		/// <summary>
		/// Populates the <see cref="RunInvokerTree"/> invoker graph
		/// with <see cref="IRunInvoker"/> generated by the run.
		/// </summary>
		/// <param name="tree">Invoker tree</param>
		/// <param name="parent">parent vertex</param>
		/// <param name="t">class type that is marked by the run</param>
		/// <remarks>
		/// TODO
		/// </remarks>
		void Reflect(RunInvokerTree tree, RunInvokerVertex parent, Type t);
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer
United States United States
Jonathan de Halleux is Civil Engineer in Applied Mathematics. He finished his PhD in 2004 in the rainy country of Belgium. After 2 years in the Common Language Runtime (i.e. .net), he is now working at Microsoft Research on Pex (http://research.microsoft.com/pex).

Comments and Discussions