public void By_Methods__Take_And_Return_A_List_of_Friends() { OrderFriends.ByName(new List <Friend>()).Should().BeOfType <List <Friend> >(); OrderFriends.ByOnlineStatus(new List <Friend>()).Should().BeOfType <List <Friend> >(); OrderFriends.ByLastSeen(new List <Friend>()).Should().BeOfType <List <Friend> >(); OrderFriends.ByLevel(new List <Friend>()).Should().BeOfType <List <Friend> >(); }
public void ByLastSeen__Sort_By_Most_Recent_First() { var newFriendsOrder = OrderFriends.ByLastSeen(_friends); newFriendsOrder.Should().BeInAscendingOrder(friend => friend.LastSeen); }