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

TestAssembly

public class TestAssembly : TestSuite
TestAssembly is a TestSuite that represents the execution of tests in a managed assembly.
using NUnit.Compatibility; using NUnit.Framework.Interfaces; using System.IO; using System.Linq; using System.Reflection; namespace NUnit.Framework.Internal { public class TestAssembly : TestSuite { public Assembly Assembly { get; set; } public override string TestType => "Assembly"; public TestAssembly(Assembly assembly, string path) : base(path) { Assembly = assembly; base.Name = Path.GetFileName(path); } public TestAssembly(string path) : base(path) { base.Name = Path.GetFileName(path); } public TestAssembly(TestAssembly assembly, ITestFilter filter) : base(assembly, filter) { base.Name = assembly.Name; Assembly = assembly.Assembly; } public override TAttr[] GetCustomAttributes<TAttr>(bool inherit) { if (!(Assembly != (Assembly)null)) return new TAttr[0]; return Assembly.GetAttributes<TAttr>().ToArray(); } } }