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
DataAttributeThe attribute.
path
stringThe path.
GetAssemblyDirectoryInfo(DataAttribute?, Type?)
Test attribute extensions: should get DirectoryInfo.
public static DirectoryInfo GetAssemblyDirectoryInfo(this DataAttribute? attribute, Type? typeInAssembly)
Parameters
attribute
DataAttributeThe attribute.
typeInAssembly
TypeThe type in assembly.
Returns
GetAssemblyParentDirectory(DataAttribute?, Type?, int)
Gets the assembly parent directory path.
public static string? GetAssemblyParentDirectory(this DataAttribute? attribute, Type? typeInAssembly, int levels)
Parameters
attribute
DataAttributeThe attribute.
typeInAssembly
TypeThe type in assembly.
levels
intThe levels of directories above the assembly.
Returns
GetAssemblyParentDirectoryInfo(DataAttribute?, Type?, int)
Gets the assembly parent DirectoryInfo.
public static DirectoryInfo GetAssemblyParentDirectoryInfo(this DataAttribute? attribute, Type? typeInAssembly, int expectedLevels)
Parameters
attribute
DataAttributeThe attribute.
typeInAssembly
TypeThe type in assembly.
expectedLevels
intThe expected levels of directories above the assembly.