示例#1
0
        /// <summary>
        /// Helper for testing empty array
        /// </summary>
        /// <typeparam name="T">type of item in array</typeparam>
        private static void TestEmptyArray <T>()
        {
            var instance1 = Empty.GetArray <T>();

            Assert.IsNotNull(instance1);

            var instance2 = Empty.GetArray <T>();

            Assert.IsNotNull(instance2);

            Assert.IsTrue(object.ReferenceEquals(instance1, instance2));
        }