コード例 #1
0
 public void SetUp()
 {
     _stubConfigurationSection = new StubExtendedConfigurationSection("WellKnown", "defaultProvider", "Default Value", "providers");
     _providerHelper           = _stubConfigurationSection.GetStubProviderHelper();
     _propertyCollection       = _stubConfigurationSection.GetProperties();
     _providerHelper.InitializeProperties(_propertyCollection);
 }
コード例 #2
0
        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);
        }