Class
LightTestsProvider

Definition

Constructors

LightTestsProvider()

Declaration

cs-api-definition
public LightTestsProvider()

Fields

PROGRESS_REPORTER_KEY

Declaration

cs-api-definition
public const string PROGRESS_REPORTER_KEY = "LightTestsProviderReporterKey"

Field Value

string

Properties

CachedTests

Declaration

cs-api-definition
public ReadOnlyCollection<LightTest> CachedTests { get; }

Property Value

ReadOnlyCollection<LightTest>

ProjectFolders

Declaration

cs-api-definition
public List<LightFolder> ProjectFolders { get; }

Property Value

List<LightFolder>

ProjectRoot

Declaration

cs-api-definition
public LightProject ProjectRoot { get; }

Property Value

LightProject

TestAsStepRefs

Declaration

cs-api-definition
public IList<LightTestAsStepReference> TestAsStepRefs { get; }

Property Value

IList<LightTestAsStepReference>

TestsFilePaths

Declaration

cs-api-definition
public List<string> TestsFilePaths { get; }

Property Value

List<string>

Methods

Clear()

Declaration

cs-api-definition
public override void Clear()

Overrides BaseProvider<LightTest>.Clear()

CreateFolderItem(string, bool)

Declaration

cs-api-definition
public LightFolder CreateFolderItem(string path, bool folderCreated)

Parameters

path

string

folderCreated

bool

Returns

LightFolder

CreateItem(string)

Declaration

cs-api-definition
public LightTest CreateItem(string testPath)

Parameters

testPath

string

Returns

LightTest

DeleteLightTestData(LightTest)

Declaration

cs-api-definition
public void DeleteLightTestData(LightTest item)

Parameters

item

LightTest

ExcludeLightTest(LightTest)

Declaration

cs-api-definition
public void ExcludeLightTest(LightTest lTest)

Parameters

lTest

LightTest

ExtractTestProperty<T>(LightTest, params string[])

Declaration

cs-api-definition
public T ExtractTestProperty<T>(LightTest lightTest, params string[] jsonPropertyPath)

Parameters

lightTest

LightTest

jsonPropertyPath

string[]

Returns

T

GetCodeBehindPath(LightTest)

Declaration

cs-api-definition
public string GetCodeBehindPath(LightTest lightTest)

Parameters

lightTest

LightTest

Returns

string

GetItem(Guid)

Declaration

cs-api-definition
public override LightTest GetItem(Guid id)

Parameters

id

Guid

Returns

LightTest

Overrides BaseProvider<LightTest>.GetItem(Guid)

GetItem(string)

Declaration

cs-api-definition
public LightTest GetItem(string testFullPath)

Parameters

testFullPath

string

Returns

LightTest

GetReporterKey()

Declaration

cs-api-definition
protected override string GetReporterKey()

Returns

string

Overrides BaseProvider<LightTest>.GetReporterKey()

GetTestImageStorePath(LightTest)

Declaration

cs-api-definition
public string GetTestImageStorePath(LightTest lightTest)

Parameters

lightTest

LightTest

Returns

string

GetTestResxPath(LightTest)

Declaration

cs-api-definition
public string GetTestResxPath(LightTest lightTest)

Parameters

lightTest

LightTest

Returns

string

ImportTest(ImportTestArgs)

Declaration

cs-api-definition
public LightTest ImportTest(ImportTestArgs args)

Parameters

args

ImportTestArgs

Returns

LightTest

Load(Project, bool)

Declaration

cs-api-definition
public virtual void Load(Project project, bool isNewProject = false)

Parameters

project

Project

isNewProject

bool

Load(string)

Declaration

cs-api-definition
public override void Load(string location)

Parameters

location

string

Overrides BaseProvider<LightTest>.Load(string)

Load(string, string, string)

Declaration

cs-api-definition
public override void Load(string location, string vsSolutionPath, string vsProjectPath)

Parameters

location

string

vsSolutionPath

string

vsProjectPath

string

Overrides BaseProvider<LightTest>.Load(string, string, string)

OnBeforeLightProjectLoad(BeforeProjectLoadArgs)

Declaration

cs-api-definition
protected virtual void OnBeforeLightProjectLoad(BeforeProjectLoadArgs args)

Parameters

args

BeforeProjectLoadArgs

OnFolderDiscovered(LightFolder)

Declaration

cs-api-definition
protected virtual void OnFolderDiscovered(LightFolder folder)

Parameters

folder

LightFolder

OnItemLoaded(LightTest)

Declaration

cs-api-definition
protected override void OnItemLoaded(LightTest item)

Parameters

item

LightTest

Overrides BaseProvider<LightTest>.OnItemLoaded(LightTest)

OnTestsDiscovered()

Declaration

cs-api-definition
protected virtual void OnTestsDiscovered()

RenameTest(LightTest, string, SourceControlProviderBase)

Declaration

cs-api-definition
public void RenameTest(LightTest lTest, string newTestPath, SourceControlProviderBase sourceControl = null)

Parameters

lTest

LightTest

newTestPath

string

sourceControl

SourceControlProviderBase

SearchForCodeBehind(ImportTestArgs)

Declaration

cs-api-definition
public bool SearchForCodeBehind(ImportTestArgs args)

Parameters

args

ImportTestArgs

Returns

bool

SearchForImageStore(ImportTestArgs)

Declaration

cs-api-definition
public bool SearchForImageStore(ImportTestArgs args)

Parameters

args

ImportTestArgs

Returns

bool

SmartRefresh()

Declaration

cs-api-definition
public IList<string> SmartRefresh()

Returns

IList<string>

TryUpdateItem(LightTest)

Declaration

cs-api-definition
public override bool TryUpdateItem(LightTest item)

Parameters

item

LightTest

Returns

bool

Overrides BaseProvider<LightTest>.TryUpdateItem(LightTest)

UpdateProjectLocation(string)

Declaration

cs-api-definition
public override void UpdateProjectLocation(string newLocation)

Parameters

newLocation

string

Overrides BaseProvider<LightTest>.UpdateProjectLocation(string)

UpgradeProject(bool, out string)

Declaration

cs-api-definition
protected virtual bool UpgradeProject(bool isNewProject, out string error)

Parameters

isNewProject

bool

error

string

Returns

bool

Events

BeforeLightProjectLoad

Declaration

cs-api-definition
public event Action<BeforeProjectLoadArgs> BeforeLightProjectLoad

Event Value

Action<BeforeProjectLoadArgs>

FolderDiscovered

Declaration

cs-api-definition
public event Action<LightFolder> FolderDiscovered

Event Value

Action<LightFolder>

RequestTestConversion

Declaration

cs-api-definition
public event Action<ConvertTestArgs> RequestTestConversion

Event Value

Action<ConvertTestArgs>

TestsDiscovered

Declaration

cs-api-definition
public event Action TestsDiscovered

Event Value

Action