public void TestTypeName()
 {
     string s = "typeName";
       TypeMappingConfigurationElement element = new TypeMappingConfigurationElement();
       element.TypeName = s;
       Assert.AreEqual(s, element.TypeName);
 }
 public void TestMapTo()
 {
     string s = "mapTo";
       TypeMappingConfigurationElement element = new TypeMappingConfigurationElement();
       element.MapTo = s;
       Assert.AreEqual(s, element.MapTo);
 }
 public void TestAdd()
 {
     TypeMappingCollection collection = new TypeMappingCollection();
       TypeMappingConfigurationElement element = new TypeMappingConfigurationElement();
       collection.Add(element);
       TypeMappingConfigurationElement[] returnedElements = new TypeMappingConfigurationElement[1];
       collection.CopyTo(returnedElements, 0);
       Assert.AreEqual(element, returnedElements[0]);
 }
 public void TestParsingRegistrations()
 {
     ConfigurationSectionHelper helper = new ConfigurationSectionHelper();
       TypeMappingConfigurationElement element = new TypeMappingConfigurationElement();
       element.TypeName = "System.Object";
       element.MapTo = "RockSolidIoc.Tests.EmptyObject";
       TypeMappingCollection collection = new TypeMappingCollection();
       collection.Add(element);
       helper.TypeMappings = collection;
       Configurator testConfigurator = new Configurator();
       IIocContainer result = testConfigurator.Configure(helper);
       object s = result.Resolve<object>();
       Assert.IsInstanceOfType(s, typeof(EmptyObject));
 }