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 }
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); }
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); }
public void SEA_DoesNotThrow() { ALittleAlliteration aLittleAlliteration = new ALittleAlliteration(); aLittleAlliteration.FindPuzzle("sea"); }