Click or drag to resize

TestUnit Class

SOWI test unit. A example for usage see TestPattern.
Inheritance Hierarchy

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

The TestUnit type exposes the following members.

Constructors
  NameDescription
Protected methodTestUnit
Initializes a new instance of the TestUnit class
Top
Properties
  NameDescription
Public propertyDataDirectory
Gives test data directory (details see SIC.Test.Helper.Directory.Data
Public propertyLog
Test result log
Public propertyResultDirectory
Gives test result directory (details see Result)
Public propertySessionToken
A session token for usage SOWI Apps
Public propertyTestContext
Test context object used properties e.g. property TestDir (regular test directory) writing for test data
Top
Methods
  NameDescription
Protected methodCode exampleDirectorySetting
Test directories setting.
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.)
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.)
Protected methodCode exampleOnDirectorySetting
Event for setting and initialize of object Directory
Protected methodCode exampleOnSessionSetting
Event for setting and initialize a Web session or a Win session
Protected methodOnTestCleanup
Use this method for test clean up
Protected methodCode exampleOnTestInitialize
Use this method for test initialization (Directory and Log objects is available)
Protected methodSessionSetting
SOWI App session setting by project properties UserName and UserPassword
Protected methodSessionSetting(String, String)
SOWI App session setting puts token.
Public methodTestCleanup
Test method clean up
Public methodTestInitialize
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
SOWI Test Unit supported:

SIC.Test.Helper.Directory (setting and initialize by method DirectorySetting(String, Boolean, String, Boolean))

SIC.Test.Helper.Log (this initialize in method TestInitialize)

SIC.Test.Helper.Session (setting and initialize by method SessionSetting(String, String))

See Also