Пример #1
0
        public void ShouldLoadExpectedConfigurations()
        {
            var testProvider = new TestXmlConfigurationProvider();

            Assert.NotEmpty(testProvider.Configurations);
            Assert.Equal("Default Configuration", testProvider.Configurations[0].Name);
            Assert.Equal("Test Configuration", testProvider.Configurations[1].Name);
        }
		public void ShouldLoadExpectedConfigurations()
		{
			var testProvider = new TestXmlConfigurationProvider();
			
			Assert.NotEmpty(testProvider.Configurations);
			Assert.Equal("Default Configuration", testProvider.Configurations[0].Name);
			Assert.Equal("Test Configuration", testProvider.Configurations[1].Name);
		}
Пример #3
0
        public void ShouldResolveExpectedOverriddenDependency()
        {
            var testProvider = new TestXmlConfigurationProvider();

            Assert.IsType(typeof(DebugSerializationLoaderLogger), testProvider.Configurations[1].Resolve <ISerializationLoaderLogger>());
        }
		public void ShouldResolveExpectedOverriddenDependency()
		{
			var testProvider = new TestXmlConfigurationProvider();

			Assert.IsType(typeof(DebugSerializationLoaderLogger), testProvider.Configurations[1].Resolve<ISerializationLoaderLogger>());
		}