Created
December 5, 2015 06:13
-
-
Save JayBazuzi/ec09dfc3e6a79d0dad37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static bool ShouldAcceptConnectionRequest(bool firstUserHasConnections, bool secondUserHasConnections) | |
{ | |
return !firstUserHasConnections && !secondUserHasConnections; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void AcceptingConnectionRequestFromUnconnectedUserShouldSucceed() | |
{ | |
ShouldAcceptConnectionRequest(firstUserHasConnections: false, secondUserHasConnections: false) | |
.Should().BeTrue(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment