public void GetElementKey_ShouldReturnTheNameOfTheNamedConfigurationElement()
 {
     const string name = "Test";
     NamedConfigurationElementCollectionMock namedConfigurationElementCollection = new NamedConfigurationElementCollectionMock();
     NamedConfigurationElementMock namedConfigurationElement = new NamedConfigurationElementMock {Name = name};
     Assert.AreEqual(name, namedConfigurationElementCollection.GetElementKey(namedConfigurationElement));
 }
 public void Properties_ShouldOnlyContainTheNameProperty()
 {
     NamedConfigurationElementMock namedConfigurationElement = new NamedConfigurationElementMock();
     Assert.AreEqual(1, namedConfigurationElement.Properties.Count);
     Assert.AreEqual(namedConfigurationElement.NamePropertyName, namedConfigurationElement.Properties.Cast<ConfigurationProperty>().First().Name);
 }