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
Assemblythe Assembly
expectedDirectoryName
stringthe name or pattern of the sibling directory (e.g.
*.Web
)
Returns
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
Returns
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
Returns
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)