<PackageReference Include="NUnit" Version="4.2.2" />

AssemblyHelper

public static class AssemblyHelper
AssemblyHelper provides static methods for working with assemblies.
public static AssemblyName GetAssemblyName(Assembly assembly)

Gets the AssemblyName of an assembly.

public static string GetAssemblyPath(Assembly assembly)

Gets the path from which an assembly was loaded. For builds where this is not possible, returns the name of the assembly.

public static string GetAssemblyPathFromCodeBase(string codeBase)

Gets the assembly path from code base.

public static string GetDirectoryName(Assembly assembly)

Gets the path to the directory from which an assembly was loaded.

public static Assembly Load(string name)

Loads an assembly given a string, which is the AssemblyName