GetDirectoryName() public static méthode

Gets the path to the directory from which an assembly was loaded.
public static GetDirectoryName ( Assembly assembly ) : string
assembly System.Reflection.Assembly The assembly.
Résultat string
        public void CanCreateObjectInAppDomain()
        {
            AppDomain domain = AppDomain.CreateDomain(
                "TestCanCreateAppDomain",
                AppDomain.CurrentDomain.Evidence,
                AssemblyHelper.GetDirectoryName(Assembly.GetExecutingAssembly()),
                null,
                false);

            var obj = domain.CreateInstanceAndUnwrap("nunit.framework.tests", "NUnit.Framework.Internal.TestExecutionContextTests+TestClass");

            Assert.NotNull(obj);
        }