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

Create_NoApplicationNameSupplied() private method

private Create_NoApplicationNameSupplied ( ) : void
return void
        public void Create_NoApplicationNameSupplied()
        {
            var workingDir = Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath);
            var setupInfo = new AppDomainSetup()
            {
                ApplicationBase = workingDir,
                PrivateBinPath = workingDir
            };

            var target = AppDomainContext.Create(setupInfo);

            Assert.NotNull(target);
            Assert.NotNull(target.Domain);
            Assert.NotNull(target.UniqueId);
            Assert.NotNull(target.RemoteResolver);
            Assert.NotEqual(AppDomain.CurrentDomain, target.Domain);

            // Verify the app domain's setup info
            Assert.False(string.IsNullOrEmpty(target.Domain.SetupInformation.ApplicationName));
            Assert.Equal(setupInfo.ApplicationBase, setupInfo.ApplicationBase);
            Assert.Equal(setupInfo.PrivateBinPath, target.Domain.SetupInformation.PrivateBinPath);
        }