public Dictionary <int, T> Build <T>()
    {
        var factory     = new DictionaryFactory <int, T>(size);
        var list        = factory.Create();
        var initializer = new IntKeyDictionaryInitializer <T>(default(T), size);

        initializer.Initialize(list);
        return(list);
    }
        public void CompareListTest225()
        {
            List <Card> list;
            Dictionary <string, int> dictionary;
            List <Card> list1;

            Card[] cards = new Card[1];
            list       = new List <Card>((IEnumerable <Card>)cards);
            dictionary = DictionaryFactory.Create(0, "", 0);
            list1      = this.CompareListTest(list, dictionary);
            Assert.IsNull((object)list1);
        }
        public void CompareListTest615()
        {
            Card        card;
            List <Card> list;
            Dictionary <string, int> dictionary;
            List <Card> list1;

            card = CardFactory.Create("\0", 0);
            Card[] cards = new Card[1];
            cards[0]   = card;
            list       = new List <Card>((IEnumerable <Card>)cards);
            dictionary = DictionaryFactory.Create(0, "\0", 0);
            list1      = this.CompareListTest(list, dictionary);
            Assert.IsNotNull((object)list1);
            Assert.AreEqual <int>(4, list1.Capacity);
            Assert.AreEqual <int>(1, list1.Count);
        }