src/GenFx.Tests/ComparisonHelperTest.cs
/// <summary>
/// Tests that an exception is thrown when passing a non-IComparable object to <see cref="ComparisonHelper.CompareLists(IList, IList)"/>.
/// </summary>
Tests that an exception is thrown when passing a non-IComparable object to .
Tests that an exception is thrown when passing a non - IComparable object to .
[Fact]
        public void ComparisonHelper_CompareLists_NonIComparable()
        {
            Assert.Throws<InvalidOperationException>(
                () => ComparisonHelper.CompareLists(
                    (IList)new List<object> { new ComparisonHelperTest() }, new List<object> { 2 }));
            Assert.Throws<InvalidOperationException>(
                () => ComparisonHelper.CompareLists(
                    (IList)new List<object> { 1 }, new List<object> { new ComparisonHelperTest() }));
        }
[ Fact ] public void ComparisonHelper_CompareLists_NonIComparable ( ) { Assert . Throws < InvalidOperationException > ( ( ) => ComparisonHelper . CompareLists ( ( IList ) new List < object > { new ComparisonHelperTest ( ) } , new List < object > { 2 } ) ) ; Assert . Throws < InvalidOperationException > ( ( ) => ComparisonHelper . CompareLists ( ( IList ) new List < object > { 1 } , new List < object > { new ComparisonHelperTest ( ) } ) ) ; }
Tests that an exception is thrown when passing a non-IComparable object to .
Tests that an exception is thrown when passing a non - IComparable object to .