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 ByName__Sort_Friends_By_Name_Alphabetically() { var newFriendsOrder = OrderFriends.ByName(_friends); newFriendsOrder.Should().BeInAscendingOrder(friend => friend.Name); }