Example #1
0
        public void WhenGetConfiguration_ResultsOfProvidersAreCombined()
        {
            var configuration = _collection.GetConfiguration(typeof(EnumWithNameAttribute)) as TsModuleMemberConfiguration;

            Assert.Equal("EnumWithCustomName", configuration.Name);
            Assert.Equal("TypeLite.Tests.Models", configuration.Module);
        }
Example #2
0
        public void WhenGetConfigurationAndProvidersCollectionIsEmpty_NullIsReturned()
        {
            var collection = new ConfigurationProviderCollection();

            var configuration = collection.GetConfiguration(typeof(EnumWithAttribute));

            Assert.Null(configuration);
        }