public void SpecificCacheClearingStream() { DefaultConfigurationService service = GenerateService(); TestConfigurationStream configuration1 = service.GetConfiguration <TestConfigurationStream, TestConfigurationMetadataStream>(); service.ClearConfiguration <TestConfigurationStream, TestConfigurationMetadataStream>(); TestConfigurationStream configuration2 = service.GetConfiguration <TestConfigurationStream, TestConfigurationMetadataStream>(); CheckConfigurationStream(configuration1); CheckConfigurationStream(configuration2); Assert.Throws <EqualException>(() => Assert.Equal(configuration1, configuration2)); }
public void SpecificCacheClearingMultiple() { DefaultConfigurationService service = GenerateService(); TestConfiguration configuration1 = service.GetConfiguration <TestConfiguration, TestConfigurationMetadata>(); TestConfiguration2 configurationt1 = service.GetConfiguration <TestConfiguration2, TestConfigurationMetadata2>(); service.ClearConfiguration <TestConfiguration, TestConfigurationMetadata>(); TestConfiguration configuration2 = service.GetConfiguration <TestConfiguration, TestConfigurationMetadata>(); TestConfiguration2 configurationt2 = service.GetConfiguration <TestConfiguration2, TestConfigurationMetadata2>(); CheckConfiguration(configuration1); CheckConfiguration(configuration2); Assert.Throws <EqualException>(() => Assert.Equal(configuration1, configuration2)); CheckConfiguration2(configurationt1, configurationt2); }