public void FromDependencyContext_CreatesFeatureStateProvider()
        {
            // Arrange
            var dependencyContext = DependencyContext.Default;
            var configuration     = new ConfigurationBuilder().Build();

            // Act
            var init = FrameworkInitialiser.FromDependencyContext(dependencyContext, configuration);

            // Assert
            Assert.NotNull(init);
            Assert.NotNull(init.FeatureStateProvider);
        }
        public void FromDependencyContext_CreatesPartManager()
        {
            // Arrange
            var dependencyContext = DependencyContext.Default;
            var configuration     = new ConfigurationBuilder().Build();

            // Act
            var init = FrameworkInitialiser.FromDependencyContext(dependencyContext, configuration);

            // Assert
            Assert.NotNull(init);
            Assert.NotNull(init.PartManager);
            Assert.Contains(init.PartManager.PartFeatureProviders, pfp => pfp is ModulePartFeatureProvider);
            Assert.Contains(init.PartManager.Parts, p => p is AssemblyPart && ((AssemblyPart)p).Assembly == typeof(TestModule).Assembly);
        }