public void ExtensionReturnsTrueIfThereIsAPolicyForType()
        {
            UnityContainer container = new UnityContainer();

            container.RegisterType <object, string>();
            Assert.True(container.IsTypeRegistered(typeof(object)));
            Assert.False(container.IsTypeRegistered(typeof(int)));

            container.RegisterType <IList <int>, List <int> >();

            Assert.True(container.IsTypeRegistered(typeof(IList <int>)));
            Assert.False(container.IsTypeRegistered(typeof(IList <string>)));

            container.RegisterType(typeof(IDictionary <,>), typeof(Dictionary <,>));
            Assert.True(container.IsTypeRegistered(typeof(IDictionary <,>)));
        }