public void SetUp() { _stubConfigurationSection = new StubExtendedConfigurationSection("WellKnown", "defaultProvider", "Default Value", "providers"); _providerHelper = _stubConfigurationSection.GetStubProviderHelper(); _propertyCollection = _stubConfigurationSection.GetProperties(); _providerHelper.InitializeProperties(_propertyCollection); }
public void GetProvider_WithoutDefaultProvider() { StubExtendedConfigurationSection stubConfigurationSection = new StubExtendedConfigurationSection("WellKnown", "defaultProvider", null, "providers"); StubProviderHelper providerHelper = stubConfigurationSection.GetStubProviderHelper(); providerHelper.InitializeProperties(_stubConfigurationSection.GetProperties()); Assert.That(providerHelper.Provider, Is.Null); }