AppDomainToolkit.UnitTests.AssemblyTargetUnitTests.FromPath_NonExistingLocationExistingCodeBase C# (CSharp) Method

FromPath_NonExistingLocationExistingCodeBase() private method

private FromPath_NonExistingLocationExistingCodeBase ( ) : void
return 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);
            });
        }