NUnit Members

MSBuild

Run NUnit on a group of assemblies.


The following tables list the members exposed by NUnit.

Public Constructors

  Name Description
Public method NUnit Initializes a new instance of the T:NUnit class.
Top

Public Fields

  Name Description
Public field Static DEFAULT_NUNIT_DIRECTORY The default relative path of the NUnit installation. The value is @"NUnit-Net-2.0 2.2.7\bin". This field is constant and read-only.
Top

Public Properties

  Name Description
Public property Assemblies Gets or sets the assemblies.
Public property BuildEngine Gets or sets the instance of the IBuildEngine object used by the task. (inherited from Task)
Public property DisableShadowCopy Determines whether assemblies are copied to a shadow folder during testing.
Public property ErrorOutputFile The file to receive test error details.
Public property ExcludeCategory Gets or sets the categories to exclude.
Public property ExitCode Gets the returned exit code of the executable file. (inherited from ToolTask)
Public property Fixture Gets or sets the fixture.
Public property HostObject Gets or sets the host object associated with the task. (inherited from Task)
Public property IncludeCategory Gets or sets the categories to include.
Public property Log Gets an instance of a TaskLoggingHelper class containing task logging methods. (inherited from Task)
Public property OutputXmlFile Gets or sets the output XML file.
Public property ProjectConfiguration The project configuration to run.
Public property TestInNewThread Allows tests to be run in a new thread, allowing you to take advantage of ApartmentState and ThreadPriority settings in the config file.
Public property Timeout Gets or sets the amount of time after which the task executable is terminated. (inherited from ToolTask)
Public property ToolPath Gets or sets the path of the executable file to run. (inherited from ToolTask)
Public property WorkingDirectory Gets or sets the working directory.
Public property XsltTransformFile Gets or sets the XSLT transform file.
Top

Protected Properties

  Name Description
Family property EnvironmentOverride Gets the override value of the PATH environment variable. (inherited from ToolTask)
Family property HelpKeywordPrefix Gets or sets the prefix used to compose Help keywords from resource names. (inherited from Task)
Family property ResponseFileEncoding Gets the Encoding of the response file. (inherited from ToolTask)
Family property StandardErrorEncoding Gets the Encoding of the standard error stream of the task. (inherited from ToolTask)
Family property StandardErrorLoggingImportance Gets the MessageImportance with which to log errors. (inherited from ToolTask)
Family property StandardOutputEncoding Gets the Encoding of the standard output stream of the task. (inherited from ToolTask)
Family property StandardOutputLoggingImportance Overidden. Gets the MessageImportance with which to log errors.
Family property TaskResources Gets or sets the culture-specific resources associated with the task. (inherited from Task)
Family property ToolName Overidden. Gets the name of the executable file to run.
Top

Public Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method Execute Runs the exectuable file with the specified task parameters. (inherited from ToolTask)
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Top

Protected Methods

  Name Description
Family method CallHostObjectToExecute Calls the host object to perform the work of the task. (inherited from ToolTask)
Family method ExecuteTool Creates a temporoary response (.rsp) file and runs the executable file. (inherited from ToolTask)
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method GenerateCommandLineCommands Overidden. Returns a string value containing the command line arguments to pass directly to the executable file.
Family method GenerateFullPathToTool Overidden. Returns the fully qualified path to the executable file.
Family method GenerateResponseFileCommands Returns a string value containing the command line arguments to add to the response (.rsp) file before running the executable file. (inherited from ToolTask)
Family method GetResponseFileSwitch Returns the command line switch used by the executable file to specifiy a response (.rsp) file. (inherited from ToolTask)
Family method GetWorkingDirectory Overidden. Returns the directory in which to run the executable file.
Family method HandleTaskExecutionErrors Handles execution errors raised by the executable file. (inherited from ToolTask)
Family method InitializeHostObject Initializes the host object of the task. (inherited from ToolTask)
Family method LogEventsFromTextOutput   (inherited from ToolTask)
Family method LogPathToTool Logs the tool name and path to all registered loggers. (inherited from ToolTask)
Family method LogToolCommand Overidden. Logs the starting point of the run to all registered loggers.
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Family method SkipTaskExecution Indicates whether task execution should be skipped. (inherited from ToolTask)
Family method ValidateParameters Indicates whether all task paratmeters are valid. (inherited from ToolTask)
Top

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.