示例#1
0
        public void should_create_generic_dictionary_instance()
        {
            var instance = new CachedType(typeof(IDictionary <string, int>)).CreateGenericDictionaryInstance();

            instance.ShouldNotBeNull();
            instance.ShouldBeType <Dictionary <string, int> >();
        }
示例#2
0
        public void should_create_generic_list_intstance()
        {
            var instance = new CachedType(typeof(IList <string>)).CreateGenericListInstance();

            instance.ShouldNotBeNull();
            instance.ShouldBeType <List <string> >();
        }
示例#3
0
 public void should_create_generic_dictionary_instance()
 {
     var instance = new CachedType(typeof(IDictionary<string, int>)).CreateGenericDictionaryInstance();
     instance.ShouldNotBeNull();
     instance.ShouldBeType<Dictionary<string, int>>();
 }
示例#4
0
 public void should_create_generic_list_intstance()
 {
     var instance = new CachedType(typeof(IList<string>)).CreateGenericListInstance();
     instance.ShouldNotBeNull();
     instance.ShouldBeType<List<string>>();
 }