src/GenFx.Components.Tests/ListEntityBaseTest.cs
/// <summary>
/// Tests that an exception is thrown when passing an invalid entity to <see cref="ListEntityBase.CompareTo"/> method works correctly.
/// </summary>
Tests that an exception is thrown when passing an invalid entity to  method works correctly.
Tests that an exception is thrown when passing an invalid entity to method works correctly .
[Fact]
        public void ListEntityBase_CompareTo_InvalidEntity()
        {
            TestEntity entity1 = new TestEntity();
            Assert.Throws<ArgumentException>(() => entity1.CompareTo(new MockEntity()));
        }
[ Fact ] public void ListEntityBase_CompareTo_InvalidEntity ( ) { TestEntity entity1 = new TestEntity ( ) ; Assert . Throws < ArgumentException > ( ( ) => entity1 . CompareTo ( new MockEntity ( ) ) ) ; }
Tests that an exception is thrown when passing an invalid entity to  method works correctly.
Tests that an exception is thrown when passing an invalid entity to method works correctly .