src/GenFx.Components.Tests/ListEntityBase.OfT.Test.cs
/// <summary>
/// Tests that the <see cref="ICollection{T}.Add"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void ListEntityBaseOfT_ICollection_Add()
        {
            TestEntity<int> entity = new TestEntity<int>();
            ((ICollection<int>)entity).Add(10);
            Assert.Equal(new int[] { 10 }, entity.InnerList);
            ((ICollection<int>)entity).Add(20);
            Assert.Equal(new int[] { 10, 20 }, entity.InnerList);
        }
[ Fact ] public void ListEntityBaseOfT_ICollection_Add ( ) { TestEntity < int > entity = new TestEntity < int > ( ) ; ( ( ICollection < int > ) entity ) . Add ( 10 ) ; Assert . Equal ( new int [ ] { 10 } , entity . InnerList ) ; ( ( ICollection < int > ) entity ) . Add ( 20 ) ; Assert . Equal ( new int [ ] { 10 , 20 } , entity . InnerList ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .