public void GetFriendsOnlineGivesEmptyWhenNoFriends() { var api = new GameStatsApi(storage); var friends = api.GetFriendsOnline(1); Assert.Equal(new List <User>(), friends); }
public void GetFriendsOnlineGivesListOfContacts() { var api = new GameStatsApi(storage); var friends = api.GetFriendsOnline(0); Assert.Equal(storage.Users[0].Friends, friends); }