BaseModelHelpers Methods

GetVersionString

Gets the version string including the build time in UTC of the provided assembly Version.

Syntax:

public static string GetVersionString(
	Version versionInfo
)

Parameters:

Parameter

Description

versionInfo

Type: Version The version information of the assembly for which the version string shall be built. E.g.

var assembly = System.Reflection.Assembly.GetExecutingAssembly().GetName();

versionInfo = assembly.Version;

LogBaseModelVersion

Logs the assembly version of the base model, if it wasn't already logged before.

Syntax:

public static void LogBaseModelVersion(
	ITester t
)

Parameters:

Parameter

Description

t

Type: ITester

Access to the tester interface.

MapRemoteDirectoryOnHost

Maps the remote directory on the host and returns a directory info for the remote directory. Make sure to unmap the remote directory in the tear down step by calling UnmapRemoteDirectoryOnHost!

Syntax:

public static DirectoryInfo MapRemoteDirectoryOnHost(
	ITester t
)

Parameters:

Parameter

Description

t

Type: ITester

Access to the tester interface.

Return Value:

A System.IO.DirectoryInfo for the mapped remote directory.

Exceptions:

Exception

Condition

RemoteDirectory could not be mapped on host.

UnmapRemoteDirectoryOnHost

Unmaps the remote directory on the host.

Syntax:

public static void UnmapRemoteDirectoryOnHost(
	ITester t
)

Parameters:

Parameter

Description

t

Type: ITester

The tester interface.

Last updated