Links

SutLocale

Description

Class that allows to get the current date time and culture of the system under test.
Implements the ISutLocale interface.

SutLocale Class

Namespace: Progile.TRIO.EnvironmentModel Assembly: Progile.TRIO.EnvironmentModel.Windows (in Progile.TRIO.EnvironmentModel.Windows.dll)

Inheritance Hierarchy:

Object Progile.TRIO.EnvironmentModel.SutLocale

Constructors

Syntax:
public SutLocale(
ITester tester,
ISystemHelpers systemHelpers,
string cultureString
)
Parameter
Description
t
Type: ITester
The tester interface.
systemHelper
An instance of the ISystemHelpers interface that allows interaction with the SUT operating system.
cultureString
Type: String The culture string (e.g en-US, de-CH etc) of the system under test. (for Windows: see Additional date, time, & regional settings in Region & language settings.)

Methods

Name
Description
Allows to change the culture of the sut (SutCultureInfo property).
Initializes the SutDateTime by determining the delta from the VM to the host where the testcase is run.

Properties

Name
Description
The culture string (e.g en-US, de-CH etc) of the system under test. (for Windows: see Additional date, time, & regional settings in Region & language settings.)
Gets the current dateTime of the system under test (SUT). For an exact time you should call InitSutDateTime before using SutDateTime.