AppDomainToolkit.UnitTests.AppDomainContextUnitTests.LoadAssembly_NoRefAssembly_LoadBitsPdbSpecified C# (CSharp) Method

LoadAssembly_NoRefAssembly_LoadBitsPdbSpecified() private method

private LoadAssembly_NoRefAssembly_LoadBitsPdbSpecified ( ) : void
return void
        public void LoadAssembly_NoRefAssembly_LoadBitsPdbSpecified()
        {
            using (var context = AppDomainContext.Create())
            {
                var targetPath = Path.GetFullPath(NoRefsAssemblyPath);
                var codebaseUri = new Uri(targetPath);
                var target = context.LoadAssembly(LoadMethod.LoadBits, targetPath, Path.ChangeExtension(targetPath, "pdb"));
                Assert.True(context.LoadedAssemblies.Any(x => x.FullName.Equals(target.FullName)));
            }
        }