Example #1
0
            public void Uppercase_BIL_ReturnsExpectedObject()
            {
                ALittleAlliteration aLittleAlliteration = new ALittleAlliteration();

                List <ALittleAlliteration> aLittleAlliterations = aLittleAlliteration.FindPuzzle("BIL");

                Assert.IsNotEmpty(aLittleAlliterations);
                aLittleAlliteration = aLittleAlliterations[0];
                Assert.AreEqual("billionaire's bile bill", aLittleAlliteration.Solution);
                // ReSharper disable StringLiteralTypo
                Assert.AreEqual("reciept for rich person's bodily fluid", aLittleAlliteration.Clue);
                // ReSharper restore StringLiteralTypo
            }
Example #2
0
            public void BOO_ExcludesClueWithDate()
            {
                ALittleAlliteration aLittleAlliteration = new ALittleAlliteration();

                List <ALittleAlliteration> aLittleAlliterations = aLittleAlliteration.FindPuzzle("boo");

                bool foundPuzzleThatShouldHaveBeenExcluded = false;

                foreach (var puzzle in aLittleAlliterations)
                {
                    if (puzzle.Solution == "boost boo books")
                    {
                        foundPuzzleThatShouldHaveBeenExcluded = true;
                    }
                }
                Assert.IsFalse(foundPuzzleThatShouldHaveBeenExcluded);
            }
Example #3
0
            public void BLI_ExcludesClueWithTwitterUrl()
            {
                ALittleAlliteration aLittleAlliteration = new ALittleAlliteration();

                List <ALittleAlliteration> aLittleAlliterations = aLittleAlliteration.FindPuzzle("bli");

                bool foundPuzzleThatShouldHaveBeenExcluded = false;

                foreach (var puzzle in aLittleAlliterations)
                {
                    if (puzzle.Solution == "Blitz blinding bliss")
                    {
                        foundPuzzleThatShouldHaveBeenExcluded = true;
                    }
                }
                Assert.IsFalse(foundPuzzleThatShouldHaveBeenExcluded);
            }
Example #4
0
            public void SEA_DoesNotThrow()
            {
                ALittleAlliteration aLittleAlliteration = new ALittleAlliteration();

                aLittleAlliteration.FindPuzzle("sea");
            }