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