public void SOCK_GeneratesNoPuzzles() { HiddenWordPuzzle puzzle = new HiddenWordPuzzle(); //puzzle.RandomSeed = 1; List <string> words = puzzle.HideWord("sock"); Console.WriteLine(string.Join(','.ToString(), words)); Assert.AreEqual(0, words.Count); }
public void TEST_GeneratesExpectedWords() { HiddenWordPuzzle puzzle = new HiddenWordPuzzle { RandomSeed = 1 }; List <string> words = puzzle.HideWord("test"); Console.WriteLine(string.Join(','.ToString(), words)); Assert.AreEqual("fate", words[0]); Assert.AreEqual("stirs", words[1]); Assert.AreEqual(2, words.Count); }