Table of Contents

Class DataAttributeExtensions

Namespace
Songhay.Tests.Extensions
Assembly
SonghayCore.xUnit.dll

Extensions for Xunit.Sdk.DataAttribute.

public static class DataAttributeExtensions
Inheritance
DataAttributeExtensions
Inherited Members

Methods

FindDirectory(DataAttribute?, string?)

Test attribute extensions: should find the specified directory.

public static void FindDirectory(this DataAttribute? attribute, string? path)

Parameters

attribute DataAttribute

The attribute.

path string

The path.

GetAssemblyDirectoryInfo(DataAttribute?, Type?)

Test attribute extensions: should get DirectoryInfo.

public static DirectoryInfo GetAssemblyDirectoryInfo(this DataAttribute? attribute, Type? typeInAssembly)

Parameters

attribute DataAttribute

The attribute.

typeInAssembly Type

The type in assembly.

Returns

DirectoryInfo

GetAssemblyParentDirectory(DataAttribute?, Type?, int)

Gets the assembly parent directory path.

public static string? GetAssemblyParentDirectory(this DataAttribute? attribute, Type? typeInAssembly, int levels)

Parameters

attribute DataAttribute

The attribute.

typeInAssembly Type

The type in assembly.

levels int

The levels of directories above the assembly.

Returns

string

GetAssemblyParentDirectoryInfo(DataAttribute?, Type?, int)

Gets the assembly parent DirectoryInfo.

public static DirectoryInfo GetAssemblyParentDirectoryInfo(this DataAttribute? attribute, Type? typeInAssembly, int expectedLevels)

Parameters

attribute DataAttribute

The attribute.

typeInAssembly Type

The type in assembly.

expectedLevels int

The expected levels of directories above the assembly.

Returns

DirectoryInfo