Exemple #1
0
            public void SingleSentence_ReturnsExpectedString()
            {
                const string EXPECTED_TEXT =
                    @"One word in each sentence below is hidden elsewhere in the sentence.
Find the word, and then write the first letter of that word into the blanks below.
1. Example Sentence
Solution: _ _ .
";
                HiddenWordPuzzle puzzle = new HiddenWordPuzzle {
                    RandomSeed = 1, Solution = "ca."
                };

                puzzle.Sentences.Add("Example Sentence");
                Assert.AreEqual(EXPECTED_TEXT, puzzle.FormatPuzzleAsText());
            }