src/GenFx.Components.Tests/ListEntityBaseTest.cs
/// <summary>
/// Tests that the <see cref="ListEntityBase.Remove"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void ListEntityBase_Remove()
        {
            TestEntity entity = new TestEntity();
            entity.InnerList.AddRange(Enumerable.Range(3, 3).Cast<object>());
            entity.InnerList.Add(3);
            entity.Remove(3);
            Assert.Equal(3, entity.InnerList.Count);
            Assert.Equal(4, entity.InnerList[0]);
            Assert.Equal(5, entity.InnerList[1]);
            Assert.Equal(3, entity.InnerList[2]);
            entity.Remove(0);
            entity.Remove("test");
            Assert.Equal(3, entity.InnerList.Count);
            entity.Remove(3);
            entity.Remove(4);
            entity.Remove(5);
            Assert.Empty(entity.InnerList);
        }
[ Fact ] public void ListEntityBase_Remove ( ) { TestEntity entity = new TestEntity ( ) ; entity . InnerList . AddRange ( Enumerable . Range ( 3 , 3 ) . Cast < object > ( ) ) ; entity . InnerList . Add ( 3 ) ; entity . Remove ( 3 ) ; Assert . Equal ( 3 , entity . InnerList . Count ) ; Assert . Equal ( 4 , entity . InnerList [ 0 ] ) ; Assert . Equal ( 5 , entity . InnerList [ 1 ] ) ; Assert . Equal ( 3 , entity . InnerList [ 2 ] ) ; entity . Remove ( 0 ) ; entity . Remove ( " " ) ; Assert . Equal ( 3 , entity . InnerList . Count ) ; entity . Remove ( 3 ) ; entity . Remove ( 4 ) ; entity . Remove ( 5 ) ; Assert . Empty ( entity . InnerList ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .