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 ByOnlineStatus__Sort_By_Online_Friends_First() { var newFriendsOrder = OrderFriends.ByOnlineStatus(_friends); newFriendsOrder.Should().BeInAscendingOrder(friend => friend.IsOnline); }