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