Table of Contents

Class TestsConfig

Namespace
CMS.Tests
Assembly
CMS.Tests.dll

Shared tests configuration

public static class TestsConfig
Inheritance
object
TestsConfig

Properties

GlobalTestsConfig

Global configuration file for tests (Tests.config located in root directory)

public static Configuration GlobalTestsConfig { get; }

Property Value

Configuration

SolutionFolderPath

The path to the root folder of the solution, if found.

public static string SolutionFolderPath { get; }

Property Value

string

Methods

GetTestAppSetting(string)

Gets the app setting from test configuration file

public static string GetTestAppSetting(string name)

Parameters

name string

App setting name

Returns

string

GetTestConnectionString(string)

Gets the connection string of the given name from test configuration file

public static string GetTestConnectionString(string name)

Parameters

name string

Connection string name

Returns

string