public void Test_Fields_WhenEmpty_ThrowsException() { SearchQuery fc = new SearchQuery(); fc.Index = "beer-ft"; fc.Highlighting(HighLightStyle.Html); Assert.Throws<ArgumentNullException>(() => fc.Fields()); }
public void Test_SupportsFields() { //will not throw ArgumentNullException SearchQuery fc = new SearchQuery(); fc.Index = "beer-ft"; fc.Highlighting(HighLightStyle.Html); fc.Fields("name", "style"); }