Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
Expansions.Missions.TestGroup Class Reference
Inheritance diagram for Expansions.Missions.TestGroup:
IConfigNode

Public Member Functions

void AddTestModule (string testName, ConfigNode cfg)
 Use reflection to add a test module to the test group More...
 
virtual void Cleared ()
 Method to overide if you want to do stuff when a node is deactivated More...
 
virtual void Initialized ()
 Method to overide if you want to do stuff when a node is activated More...
 
void Load (ConfigNode node)
 
virtual void OnCloned (TestGroup testGroupBase)
 
virtual void RunValidation (Editor.MissionEditorValidator validator)
 Override this to add custom Validation checks and results to this object More...
 
void Save (ConfigNode node)
 
bool Test ()
 Check if all the tests in this group are true More...
 
 TestGroup (MENode node)
 
 TestGroup (MENode node, string title)
 

Public Attributes

string description = ""
 Descriptive text for this TestGroup More...
 
List< ITestModuletestModules
 List of tests that are used to check if this test group has passed More...
 
string title = ""
 The display name for this More...
 

Properties

bool isActive [get, set]
 Is this TestGroup active. More...
 
MENode node [get, set]
 The Node that this TestGroup is Attached to More...
 

Constructor & Destructor Documentation

Expansions.Missions.TestGroup.TestGroup ( MENode  node)
inline
Expansions.Missions.TestGroup.TestGroup ( MENode  node,
string  title 
)
inline

Member Function Documentation

void Expansions.Missions.TestGroup.AddTestModule ( string  testName,
ConfigNode  cfg 
)
inline

Use reflection to add a test module to the test group

Parameters
testNameThe name of the test module to be added
cfgOptional config node to parse to fill in the parameters of the test module
virtual void Expansions.Missions.TestGroup.Cleared ( )
inlinevirtual

Method to overide if you want to do stuff when a node is deactivated

virtual void Expansions.Missions.TestGroup.Initialized ( )
inlinevirtual

Method to overide if you want to do stuff when a node is activated

void Expansions.Missions.TestGroup.Load ( ConfigNode  node)
inline

Implements IConfigNode.

virtual void Expansions.Missions.TestGroup.OnCloned ( TestGroup  testGroupBase)
inlinevirtual
virtual void Expansions.Missions.TestGroup.RunValidation ( Editor.MissionEditorValidator  validator)
inlinevirtual

Override this to add custom Validation checks and results to this object

Parameters
validatorThe MissionValidator that the results will be added to
void Expansions.Missions.TestGroup.Save ( ConfigNode  node)
inline

Implements IConfigNode.

bool Expansions.Missions.TestGroup.Test ( )
inline

Check if all the tests in this group are true

Returns
Whether all the tests returned true

Member Data Documentation

string Expansions.Missions.TestGroup.description = ""

Descriptive text for this TestGroup

List<ITestModule> Expansions.Missions.TestGroup.testModules

List of tests that are used to check if this test group has passed

string Expansions.Missions.TestGroup.title = ""

The display name for this

Property Documentation

bool Expansions.Missions.TestGroup.isActive
getset

Is this TestGroup active.

MENode Expansions.Missions.TestGroup.node
getset

The Node that this TestGroup is Attached to


The documentation for this class was generated from the following file: