public void ParseInvalidStringWorks()
 {
     var parser = new SearchStringParser();
       var result = parser.Parse("*");
       Assert.IsNotNull(result);
       Assert.IsNotNull(result.MainEntry);
       Assert.AreEqual("", result.MainEntry.Text);
 }
 public void ParseSimpleStringWorks2()
 {
     var parser = new SearchStringParser();
       var result = parser.Parse("foo*");
       Assert.IsNotNull(result);
       Assert.IsNotNull(result.MainEntry);
       Assert.AreEqual("foo", result.MainEntry.Text);
       Assert.AreEqual(0, result.MainEntry.Index);
 }
 public void ParseInvalidStringWorks2()
 {
     var parser = new SearchStringParser();
       var result = parser.Parse("foo**bar2");
       Assert.IsNotNull(result);
       Assert.IsNotNull(result.MainEntry);
       Assert.AreEqual("bar2", result.MainEntry.Text);
       Assert.AreEqual(1, result.MainEntry.Index);
 }