public void AssignCharArray_AssignsCharArry_Array() { string testWord = "Hello"; char[] testCharArray = { 'H', 'E', 'L', 'L', 'O' }; Word newWord = new Word(testWord); char[] result = newWord.AssignCharArray(); CollectionAssert.AreEqual(testCharArray, result); }
public void AssignPoints_ReturnsUserPoints_Int() { string testWord = "Hello"; int testPoints = 8; Word newWord = new Word(testWord); char[] resultArray = newWord.AssignCharArray(); int userPoints = newWord.AssignPoints(); Assert.AreEqual(testPoints, userPoints); }