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