AppDomainToolkit.UnitTests.AssemblyTargetUnitTests.FromPath_NonExistingLocationExistingCodeBase C# (CSharp) Метод

FromPath_NonExistingLocationExistingCodeBase() приватный Метод

private FromPath_NonExistingLocationExistingCodeBase ( ) : void
Результат 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);
            });
        }