GetWord() 공개 메소드

Returns the word to the index at a given
public GetWord ( int index ) : string
index int a specified cursorPosition of word
리턴 string
 public void EqualsTest()
 {
     string str = chain.ToString();
     var alphabet1 = new FrequencyDictionary(str);
     var alphabet2 = new FrequencyDictionary(chain);
     Assert.True(alphabet1.Equals(alphabet2));
     alphabet1.Remove(alphabet1.GetWord(1));
     Assert.True(!alphabet1.Equals(alphabet2));
 }
 public void GetWordTest()
 {
     var alphabet = new FrequencyDictionary(chain);
     for (int index = 0; index < alphabet.Count; index++)
     {
         Assert.True(alphabet.Contains(alphabet.GetWord(index)));
     }
 }