Table of Contents

Class AssemblyExtensions

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

Extensions of Assembly

public static class AssemblyExtensions
Inheritance
AssemblyExtensions
Inherited Members

Methods

FindNetCoreProjectDirectorySiblingInfo(Assembly, string)

Returns the sibling DirectoryInfo of the directory referenced by GetNetCoreProjectDirectoryInfo(Assembly).

public static DirectoryInfo? FindNetCoreProjectDirectorySiblingInfo(this Assembly assembly, string expectedDirectoryName)

Parameters

assembly Assembly

the Assembly

expectedDirectoryName string

the name or pattern of the sibling directory (e.g. *.Web)

Returns

DirectoryInfo

GetDirectoryInfoOfConventionalWebProjectWithAssertion(Assembly)

Returns the sibling DirectoryInfo of the conventional Web project directory by asserting that FindNetCoreProjectDirectorySiblingInfo(Assembly, string)(*.Web) is valid with NotNull(object).

public static DirectoryInfo GetDirectoryInfoOfConventionalWebProjectWithAssertion(this Assembly assembly)

Parameters

assembly Assembly

the Assembly

Returns

DirectoryInfo

GetDirectoryInfoWithAssertion(Assembly, string?)

Returns DirectoryInfo based on the specified file segment and GetPathFromAssembly(Assembly?, string?) by asserting that Exists is true with True(bool).

public static DirectoryInfo GetDirectoryInfoWithAssertion(this Assembly assembly, string? fileSegment)

Parameters

assembly Assembly

the Assembly

fileSegment string

the file segment, relative to the Assembly

Returns

DirectoryInfo

GetNetCoreProjectDirectoryInfo(Assembly)

Returns the path of the conventional, .NET-Solution, project directory with the .NET-Core file segment (NetCoreRelativePathToProjectFolder).

public static DirectoryInfo GetNetCoreProjectDirectoryInfo(this Assembly assembly)

Parameters

assembly Assembly

the Assembly

Returns

DirectoryInfo