Exemplo n.º 1
0
        public void BaseCollection_GetEnumerator_InvokeDefault_ThrowsNullReferenceException()
        {
            var collection = new BaseCollection();

            Assert.Throws <NullReferenceException>(() => collection.CopyTo(Array.Empty <object>(), 0));
        }
Exemplo n.º 2
0
        public void GetEnumerator_InvokeDefault_ThrowsNullReferenceException()
        {
            var collection = new BaseCollection();

            Assert.Throws <NullReferenceException>(() => collection.CopyTo(new object[0], 0));
        }