示例#1
0
        public void DbHelpers_GetPropertyTypes_can_be_accessed_from_multiple_threads_concurrently()
        {
            ExecuteInParallel(
                () =>
            {
                var types = DbHelpers.GetPropertyTypes(typeof(TypeWithALotOfProperties));

                Assert.Equal(50, types.Count);
                Assert.Equal(typeof(string), types["Property3"]);
                Assert.Equal(typeof(int), types["Property26"]);
            });
        }