Beispiel #1
0
        public void Queue_should_return_comparable_objects_in_sorted_order()
        {
            var input  = ItemsArray.FromIntArray(new [] { 4, 2, 1, 3 });
            var result = PutIntoQueueAndTakeBack(input);

            result.Should()
            .BeInAscendingOrder()
            .And.BeEquivalentTo <Item>(ItemsArray.FromIntArray(new[] { 1, 2, 3, 4 }));
        }