src/GenFx.Components.Tests/ListEntityBase.OfT.Test.cs
/// <summary>
/// Tests that the <see cref="ICollection{T}.CopyTo"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void ListEntityBaseOfT_ICollection_CopyTo()
        {
            TestEntity<int> entity = new TestEntity<int>();
            entity.InnerList.AddRange(Enumerable.Range(3, 3).Cast<int>());
            int[] array = new int[entity.InnerList.Count];
            ((ICollection<int>)entity).CopyTo(array, 0);
            Assert.Equal(new int[] { 3, 4, 5 }, array);
        }
[ Fact ] public void ListEntityBaseOfT_ICollection_CopyTo ( ) { TestEntity < int > entity = new TestEntity < int > ( ) ; entity . InnerList . AddRange ( Enumerable . Range ( 3 , 3 ) . Cast < int > ( ) ) ; int [ ] array = new int [ entity . InnerList . Count ] ; ( ( ICollection < int > ) entity ) . CopyTo ( array , 0 ) ; Assert . Equal ( new int [ ] { 3 , 4 , 5 } , array ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .