示例#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));
 }
示例#2
0
 public void BuildOccurenceArray_PassValidString_Succeed(string input, int[] expected)
 {
     CollectionAssert.AreEqual(expected, CheatFunctions.BuildOccurenceArray(input));
 }