Created
July 30, 2016 10:34
-
-
Save isidore/e821db16b14ce5514986939038070b35 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
private IEnumerable<string> ProcessScores() | |
{ | |
yield return Win(); | |
yield return Advantage(); | |
yield return ScoreNormal(); | |
yield return person2.ScoreOpponentHasntScored(person1); | |
yield return person1.ScoreOpponentHasntScored(person2); | |
yield return ScoreTie(); | |
throw new Exception("Unreachable code was executed"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment