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
attributeDataAttributeThe attribute.
pathstringThe path.
GetAssemblyDirectoryInfo(DataAttribute?, Type?)
Test attribute extensions: should get DirectoryInfo.
public static DirectoryInfo GetAssemblyDirectoryInfo(this DataAttribute? attribute, Type? typeInAssembly)
Parameters
attributeDataAttributeThe attribute.
typeInAssemblyTypeThe 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
attributeDataAttributeThe attribute.
typeInAssemblyTypeThe type in assembly.
levelsintThe 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
attributeDataAttributeThe attribute.
typeInAssemblyTypeThe type in assembly.
expectedLevelsintThe expected levels of directories above the assembly.