Ejemplo n.º 1
0
 public void TestIfMatching_PassValidArray_Succeed(string givenLetters, string wordInDictionary)
 {
     int[] givenLettersArray = CheatFunctions.BuildOccurenceArray(givenLetters);
     int[] wordArray         = CheatFunctions.BuildOccurenceArray(wordInDictionary);
     Assert.IsTrue(CheatFunctions.TestIfMatching(givenLettersArray, wordArray));
 }
Ejemplo n.º 2
0
 public void BuildOccurenceArray_PassValidString_Succeed(string input, int[] expected)
 {
     CollectionAssert.AreEqual(expected, CheatFunctions.BuildOccurenceArray(input));
 }