Exemplo n.º 1
0
        public void TestTypesCachingPass(Type parentType, int count)
        {
            TypeUtilities.ClearCache();
            for (var i = 0; i < count; i++)
            {
                TypeUtilities.GetCollection(parentType);
            }

            Assert.AreEqual(1, TypeUtilities.cachedCollections.Count);
        }