public void SOCK_NoWordsStartWithCK_ReturnsExpectedResults() { HiddenWordPuzzle puzzle = new HiddenWordPuzzle(); List <string> results = puzzle.GenerateAllSplitableStrings("sock"); CollectionAssert.AreEquivalent(new List <string>(), results); }
public void LONE_ReturnsExpectedSplitableStrings() { HiddenWordPuzzle puzzle = new HiddenWordPuzzle(); List <string> results = puzzle.GenerateAllSplitableStrings("lone"); List <string> expectedStrings = new List <string> { "l.one", "lo.ne", "lon.e", //Single dot "l.on.e" //double dot }; CollectionAssert.AreEquivalent(expectedStrings, results); }
public void TEST_ReturnsExpectedSplitableStrings() { HiddenWordPuzzle puzzle = new HiddenWordPuzzle(); List <string> results = puzzle.GenerateAllSplitableStrings("test"); List <string> expectedStrings = new List <string> { //"t.est", //no word starts with est. "te.st", "tes.t" }; CollectionAssert.AreEquivalent(expectedStrings, results); }
public void DOMAIN_ReturnsExpectedSplitableStrings() { HiddenWordPuzzle puzzle = new HiddenWordPuzzle(); List <string> results = puzzle.GenerateAllSplitableStrings("domain"); List <string> expectedStrings = new List <string> { "do.main", //one dot "dom.a.in", //two dots "dom.a.i.n" //three dots }; CollectionAssert.AreEquivalent(expectedStrings, results); }
public void ONION_ReturnsExpectedSplitableStrings() { HiddenWordPuzzle puzzle = new HiddenWordPuzzle(); List <string> results = puzzle.GenerateAllSplitableStrings("onion"); List <string> expectedStrings = new List <string> { // ReSharper disable CommentTypo //"o.nion",//No words start with "nion" "on.ion", //"oni.on", //No word starts with 'oni' //"onio.n", // "on.i.on", //double dot. // ReSharper restore CommentTypo }; CollectionAssert.AreEquivalent(expectedStrings, results); }