Click or drag to resize

TestPattern Class

Pattern of a test based on SIC Test Unit. This example is a test unit for test cases about operations arithmetic: Addition, Subtraction, Multiplication, Division.
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 class TestPattern : TestUnit

The TestPattern type exposes the following members.

Constructors
  NameDescription
Public methodTestPattern
Initializes a new instance of the TestPattern class
Top
Properties
  NameDescription
Public propertyDataDirectory
Gives test data directory (details see SIC.Test.Helper.Directory.Data
(Inherited from TestUnit.)
Public propertyLog
Test result log
(Inherited from TestUnit.)
Public propertyResultDirectory
Gives test result directory (details see Result)
(Inherited from TestUnit.)
Public propertySessionToken
A session token for usage SOWI Apps
(Inherited from TestUnit.)
Public propertyTestContext
Test context object used properties e.g. property TestDir (regular test directory) writing for test data
(Inherited from TestUnit.)
Top
Methods
  NameDescription
Protected methodCode exampleDirectorySetting
Test directories setting.
(Inherited from TestUnit.)
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 methodOnDirectorySetting
Test directories setting
(Overrides TestUnitOnDirectorySetting.)
Protected methodOnSessionSetting
Test session setting Note: object Directory and Log is available.
(Overrides TestUnitOnSessionSetting.)
Protected methodOnTestCleanup
Test clean up
(Overrides TestUnitOnTestCleanup.)
Protected methodOnTestInitialize
Test initialize for test environment settings. Note: object Directory and Log is available.
(Overrides TestUnitOnTestInitialize.)
Protected methodSessionSetting
SOWI App session setting by project properties UserName and UserPassword
(Inherited from TestUnit.)
Protected methodSessionSetting(String, String)
SOWI App session setting puts token.
(Inherited from TestUnit.)
Public methodTestArithmeticAddition
Test case for arithmetic addition
Public methodTestArithmeticDivision
Test case for arithmetic division
Public methodTestArithmeticMulitplication
Test case for arithmetic multiplication
Public methodTestArithmeticSubtration
Test case for arithmetic subtraction
Public methodTestCleanup
Test method clean up
(Inherited from TestUnit.)
Public methodTestEmptyTestCase
Test case empty test case
Public methodTestInitialize (Inherited from TestUnit.)
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
Details about base test unit see TestUnit
See Also