C# Class NSpecRunner.GUI.SpecRunner

Inheritance: System.Windows.Forms.Form
Exibir arquivo Open project: devsaurabh/SpecRunner

Public Properties

Property Type Description
_testCount int

Public Methods

Method Description
GetErrorItems ( NSpecRunner.Core.Domain.SerializableExampleBase example ) : List

Gets the error items.

SpecRunner ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AboutMenuStrip_Click ( object sender, EventArgs e ) : void

Handles the Click event of the AboutMenuStrip control.

AddAssemblyMenuItem_Click ( object sender, EventArgs e ) : void

Adds the assembly file in the current project

BuildChildNodes ( NSpecRunner.Core.Domain.SerializableContext methodContext, TreeNode methodNode ) : void

Builds the child nodes.

CloseAssemblyMenuItem_Click ( object sender, EventArgs e ) : void

Unloads the active assembly

CloseProjectMenuItem_Click ( object sender, EventArgs e ) : void

Handles the click even from the Close Project Menu Item

ExitMenuItem_Click ( object sender, EventArgs e ) : void

Exits the application

GetTestAssembly ( TreeNode node, string &parent ) : void

Gets the test assembly from the current tree node.

GetTreeLeafs ( TreeNode node, List leafCollection ) : void

Gets the tree leafs.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LoadAssembly ( string fileName ) : Task

Loads the assembly.

NewProject ( ) : void
On_ExampleProcessed ( NSpecRunner.Core.Domain.Formatters.ExampleEventArgs e ) : void

Raises the E:ExampleProcessed event.

On_TestClassProcessed ( string runningClass, EventArgs e ) : void

Called when [test class processed].

OpenProjectMenuItem_Click ( object sender, EventArgs e ) : void

ReloadMenuItem_Click ( object sender, EventArgs e ) : void

Reload the current assemblies

SaveAsMenuItem_Click ( object sender, EventArgs e ) : void

SaveFile ( string projFile ) : void

Save the project

SaveProjectMenuItem_Click ( object sender, EventArgs e ) : void

Handles the click even from the Save Project Menu Item

SetControls ( ) : void

Sets the status of various controls

ShowSaveFilePrompt ( ) : bool

Shows the save alert if file is not saved

SpecHelpMenuStrip_Click ( object sender, EventArgs e ) : void

Shows help for the tool

SpecRunner_FormClosing ( object sender, FormClosingEventArgs e ) : void

Handles the FormClosing event of the SpecRunner control.

SpecRunner_Load ( object sender, EventArgs e ) : void

Handles the Load event of the SpecRunner control.

TraverseTillRoot ( TreeNode node, string resultType ) : void

Traverses the tree view to find the root most element from the selected node Used to mark the node status as failed or pass once the test is executed

UnloadProject ( ) : void

Unload the current loaded project

btnRunSelected_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnRunSelected control.

lstErrors_Click ( object sender, EventArgs e ) : void

treeSpecs_AfterSelect ( object sender, TreeViewEventArgs e ) : void

Handles the AfterSElect even of the Tree View

treeSpecs_MouseClick ( object sender, MouseEventArgs e ) : void

Triggers when user clicks on the Tree view

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GetErrorItems() public method

Gets the error items.
public GetErrorItems ( NSpecRunner.Core.Domain.SerializableExampleBase example ) : List
example NSpecRunner.Core.Domain.SerializableExampleBase The example.
return List

SpecRunner() public method

public SpecRunner ( ) : System
return System

Property Details

_testCount public_oe property

public int _testCount
return int