ToSplittedStrings() публичный Метод

Parse the root string and form the concatenation of prefix and the parsed parts of the root for inverted word index
public ToSplittedStrings ( ) : IEnumerable
Результат IEnumerable
Пример #1
0
 public void ToSplittedStringsTwoRoots()
 {
     // More than one item
     IndexString test = new IndexString("good:", "bad?ok");
     Assert.AreEqual("bad good:bad ok good:ok", String.Join(" ", test.ToSplittedStrings()));
 }
Пример #2
0
 public void ToSplittedStringsNoPrefix()
 {
     // No prefix
     IndexString test = new IndexString(null, "good-ok");
     Assert.AreEqual("good-ok", String.Join(" ", test.ToSplittedStrings()));
 }
Пример #3
0
 public void ToSplittedStringsNoRoot()
 {
     // No root
     IndexString test = new IndexString("good", null);
     Assert.AreEqual("", String.Join(" ", test.ToSplittedStrings()));
 }
Пример #4
0
 public void ToSplittedStringsBasic()
 {
     // One item
     IndexString test = new IndexString("good:", "bad");
     Assert.AreEqual("bad good:bad", String.Join(" ", test.ToSplittedStrings()));
 }