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

AssemblyHelper

public class AssemblyHelper
AssemblyHelper provides static methods for working with assemblies.
using System; using System.IO; using System.Reflection; namespace NUnit.Framework.Internal { public class AssemblyHelper { public static string GetAssemblyPath(Type type) { return GetAssemblyPath(type.GetTypeInfo().get_Assembly()); } public static string GetAssemblyPath(Assembly assembly) { return assembly.ManifestModule.FullyQualifiedName; } public static AssemblyName GetAssemblyName(Assembly assembly) { return new AssemblyName(assembly.FullName); } public static Assembly Load(string name) { string extension = Path.GetExtension(name); if (extension == ".dll" || extension == ".exe") name = Path.GetFileNameWithoutExtension(name); return Assembly.Load(new AssemblyName { Name = name }); } } }