Esempio n. 1
0
 public void CanUnderstandProjectionOfSingleField()
 {
     var q = new DocumentQuery<IndexedUser>(null, null, "IndexName", null)
         .WhereGreaterThanOrEqual("Birthday", new DateTime(2010, 05, 15))
         .SelectFields<IndexedUser>("Name") as DocumentQuery<IndexedUser>;
     string fields = q.GetProjectionFields().Any() ?
         "<" + String.Join(", ", q.GetProjectionFields().ToArray()) + ">: " : "";
     Assert.Equal("<Name>: Birthday:[20100515000000000 TO NULL]", fields + q.ToString());
 }