Click or drag to resize

Directory Class

Test result directory and test data directory handling.
Inheritance Hierarchy
SystemObject
  SIC.Test.HelperDirectory

Namespace:  SIC.Test.Helper
Assembly:  SIC.Test.Helper (in SIC.Test.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public class Directory

The Directory type exposes the following members.

Constructors
  NameDescription
Public methodDirectory
Constructor with parameter
Top
Properties
  NameDescription
Private property_TestContext
Temporary TestContext object. Uses see TestContext.
Public propertyCreateDirectory
Should be created the directory.
Public propertyData
Gives directory of test data files
Public propertyDataRedirect
Regular test data directory or manual (DataRedirecting
Public propertyDataRedirecting
Redirection test data directory. Example @"C:\Work\Data\"
Private propertyGetProjectDirectory
Get regular test project directory. Compose path: source directory \ project name.
Public propertyResult
Gives test result directory. Control by variable ResultRedirect
Public propertyResultRedirect
Regular test result directory from object TestContext is deleted when test was successful so can this redirect to ResultRedirecting
Public propertyResultRedirecting
Redirection test result directory. Detail see ResultRedirect. Example @"C:\Work\"
Private propertyTestContext
Test context object used properties e.g. property TestDir (test directory) writing for test data
Top
Methods
  NameDescription
Private methodCheckPath
Check exists path (directory). If not exist then create directory and gives text "created" back.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Private methodGetPath
Check path with ends \. If not then adds a \.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetObjectToBytes
Convert an object to byte array
(Defined by Extensions.)
Public Extension MethodIsNumber
Check is value a number
(Defined by Convert.)
Public Extension MethodToHTMLDisplay(DataGrid, TempDataDictionary)Overloaded. (Defined by Extensions.)
Public Extension MethodCode exampleToHTMLDisplay(String, DataGridDataTypes, String, String, String, String, TempDataDictionary)Overloaded.
Gives HTML code for display.
(Defined by Extensions.)
Public Extension MethodToHTMLEditor(DataGrid, TempDataDictionary, String)Overloaded. (Defined by Extensions.)
Public Extension MethodToHTMLEditor(String, DataGridDataTypes, String, String, String, TempDataDictionary, Boolean, String, DataPlacements, String, String)Overloaded.
Gives HTML code for Input field
(Defined by Extensions.)
Public Extension MethodCode exampleToHTMLHidden(String)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodToHTMLHidden(DataGrid)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodXMLWrite
Gives XML string from data item
(Defined by Helper.)
Top
Remarks
Can switch between regular test result directory from TestContext object or manuel directory because the regular test result directory is deleted when test was successful so can this redirect to ResultRedirecting. Details see Result.

Can switch between regular test data directory or manual directory. Details see Data.

Examples
See SOWI Framework documentation Test Programming
See Also