src/GenFx.Components.Tests/ListEntityBase.OfT.Test.cs
/// <summary>
/// Tests that the <see cref="ListEntityBase{TItem}.CompareTo"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void ListEntityBaseOfT_CompareTo_GreaterThan()
        {
            TestEntity<string> entity1 = new TestEntity<string>
            {
                "a",
                null,
                "c",
                null
            };
            TestEntity<string> entity2 = new TestEntity<string>
            {
                "a",
                null,
                "b",
                null
            };
            int result = entity1.CompareTo(entity2);
            Assert.Equal(1, result);
        }
[ Fact ] public void ListEntityBaseOfT_CompareTo_GreaterThan ( ) { TestEntity < string > entity1 = new TestEntity < string > { " " , null , " " , null } ; TestEntity < string > entity2 = new TestEntity < string > { " " , null , " " , null } ; int result = entity1 . CompareTo ( entity2 ) ; Assert . Equal ( 1 , result ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .