示例#1
0
        public void MethodSort_MaxElemComparerDescending_ReturnSortedArray()
        {
            int[][] array =
            {
                new int[] {  5,  3, 1, 7, 9 },
                new int[] {  4,  0, 2,6 },
                new int[] { 22, 33, 11 }
            };

            int[][] expected =
            {
                new int[] { 22, 33, 11 },
                new int[] {  5,  3,1, 7, 9 },
                new int[] {  4,  0,2, 6 }
            };

            DelegateInterface.Sort(array, new MaxElemDescendingComparer().ToCompare);

            CollectionAssert.AreEqual(expected, array);
        }
示例#2
0
 static OnException()
 {
     DoNothing      = (Exception e) => { };
     ThrowException = (Exception e) => throw e;
     PublishExceptionToDefaultEventBus = (Exception e) => EventBus.Publish <Exception>(e, new SenderProxy <Exception>(SenderUnknown.Instance));
 }