Put() public méthode

Maps the specified word to the specified cursorPosition in a sequence.
public Put ( string str, int pos ) : void
str string a new word
pos int a cursorPosition of the word in the sequence
Résultat void
        public void PutTest()
        {
            var alphabet = new FrequencyDictionary(chain);
            string word = "string";
            string unknown = "WOW";
            int pos = 20;
            alphabet.Put(word, pos);

            Assert.True(alphabet.Contains(word));
            Assert.True(!alphabet.Contains(unknown));
        }