public void ASingleDocumentIsReturnedFromScoredSearchSingle() { SearchOptions options = new SearchOptions("*****@*****.**", "Email"); var result = searcher.ScoredSearchSingle(options); Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(Document)); Assert.AreEqual("*****@*****.**", result.Get("Email")); }
public void ASingleDocumentIsReturnedFromScoredSearchSingle() { SearchOptions options = new SearchOptions("*****@*****.**", "Email"); var result = Searcher.ScoredSearchSingle(options); Assert.NotNull(result); Assert.IsType <Document>(result); Assert.IsAssignableFrom <Document>(result); Assert.Equal("*****@*****.**", result.Get("Email")); }