AppDomainToolkit.UnitTests.AssemblyTargetUnitTests.FromPath_NonExistingLocationExistingCodeBase C# (CSharp) Méthode

FromPath_NonExistingLocationExistingCodeBase() private méthode

private FromPath_NonExistingLocationExistingCodeBase ( ) : void
Résultat void
        public void FromPath_NonExistingLocationExistingCodeBase()
        {
            Assert.Throws(typeof(FileNotFoundException), () =>
            {
                var assembly = Assembly.GetExecutingAssembly();
                var location = string.Format("{0}/{1}", Guid.NewGuid().ToString(), Path.GetRandomFileName());
                var target = AssemblyTarget.FromPath(new Uri(assembly.CodeBase), location);
            });
        }