public void CanSortUsingExternalComparer()
        {
            IComparer comparer = new ReverseSortComparer();

            mockTestFixture.Sort(comparer);
            Assert.AreEqual("TestWithManyProperties", ((Test)mockTestFixture.Tests[0]).TestName.Name);
        }
Пример #2
0
 public void CanSortUsingExternalComparer()
 {
     IComparer comparer = new ReverseSortComparer();
     mockTestFixture.Sort(comparer);
     Assert.AreEqual( "TestWithManyProperties", ((Test)mockTestFixture.Tests[0]).TestName.Name );
 }