2022-01-12 10:06:03 +03:00
|
|
|
using System;
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
namespace UnityEngine.TestTools.Utils
|
|
|
|
{
|
|
|
|
internal class AssemblyWrapper : IAssemblyWrapper
|
|
|
|
{
|
|
|
|
public AssemblyWrapper(Assembly assembly)
|
|
|
|
{
|
|
|
|
Assembly = assembly;
|
2022-01-12 10:39:15 +03:00
|
|
|
Name = assembly.GetName();
|
2022-01-12 10:06:03 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public Assembly Assembly { get; }
|
|
|
|
|
2022-01-12 10:39:15 +03:00
|
|
|
public AssemblyName Name { get; }
|
|
|
|
|
2022-01-12 10:06:03 +03:00
|
|
|
public virtual string Location
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
//Some platforms dont support this
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public virtual AssemblyName[] GetReferencedAssemblies()
|
|
|
|
{
|
|
|
|
//Some platforms dont support this
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|