public void RemoveFollowingWhenUserSelectedIsAlreadyInTheCollection() { var user = new ShuntedUser { Handle = "foo" }; var userToFollow = new User { Handle = "bar" }; user.AddUserToFollowingCollection(userToFollow); user.ToggleFollowing(userToFollow); Assert.That(user.Following, Has.No.Member(userToFollow)); }
public void RemoveFollowerAfterUserStopsFollowing() { var user = new ShuntedUser { Handle = "foo" }; var userToFollow = new User { Handle = "bar" }; user.AddUserToFollowingCollection(userToFollow); user.ToggleFollowing(userToFollow); Assert.That(userToFollow.Followers, Has.No.Member(user)); }