src/GenFx.Components.Tests/ListEntityBaseTest.cs
/// <summary>
/// Tests that the <see cref="ListEntityBase.Add"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void ListEntityBase_Add()
        {
            TestEntity entity = new TestEntity();
            int index = entity.Add(2);
            Assert.Equal(0, index);
            Assert.Single(entity.InnerList);
            Assert.Equal(2, entity.InnerList[0]);
            index = entity.Add("test");
            Assert.Equal(1, index);
            Assert.Equal(2, entity.InnerList.Count);
            Assert.Equal(2, entity.InnerList[0]);
            Assert.Equal("test", entity.InnerList[1]);
        }
[ Fact ] public void ListEntityBase_Add ( ) { TestEntity entity = new TestEntity ( ) ; int index = entity . Add ( 2 ) ; Assert . Equal ( 0 , index ) ; Assert . Single ( entity . InnerList ) ; Assert . Equal ( 2 , entity . InnerList [ 0 ] ) ; index = entity . Add ( " " ) ; Assert . Equal ( 1 , index ) ; Assert . Equal ( 2 , entity . InnerList . Count ) ; Assert . Equal ( 2 , entity . InnerList [ 0 ] ) ; Assert . Equal ( " " , entity . InnerList [ 1 ] ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .