Log Class |
Namespace: SIC.Test.Helper
The Log type exposes the following members.
Name | Description | |
---|---|---|
Log |
Constructor with parameter. Create Protocol object (filename: result directory + test name + time stamp + .txt)
|
Name | Description | |
---|---|---|
GetTimeStamp |
Gives today date and time as formatted yyymmddhhmmss
| |
Name |
Test name (compose: Test + test name + on + time stamp (example: Test: TestNumberDivide on 20170616144141)
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue |
Gives value from object data field
| |
IsTrue(Boolean, String, String, String) |
Check to be condition has true.
| |
IsTrue(Exception, Object, String, String) |
Exception handling
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Result |
Write test result (IsTrue).
| |
TestEnd |
Test end (stop watch)
| |
TestStart |
Test start (stop watch)
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Write |
Writes object Text and clean up text.
| |
Write(String) |
Text writes to Debug window and/or to protocol file.
| |
Write(StringBuilder) |
Call method Write(String) | |
Write(String, String) |
Write text and value. Example: Value A: 5
| |
Write(Object, String, String) |
Writes two fields from a data object (a label field and a value field)
| |
WriteT(ListT) |
Writes a one dimensional list
| |
WriteT(ListT, String, String) |
Writes a list of data items
| |
WriteTitle |
Write a new line and a title in uppercase
|
Note about test stop watch: does not logs between method TestStart and TestEnd because it distorts the test duration.