public void Export_With_SearchParams_ReturnsValidJson()
{
var query = new DocIdQuery("foo");
var searchParams = new SearchParams();
var result = query.Export(searchParams).ToString(Formatting.None);
var expected = JsonConvert.SerializeObject(new
{
ctl = new
{
timeout = 75000
},
query = new
{
boost = 0.0,
ids = new[]
{
"foo"
}
}
}, Formatting.None);
Assert.AreEqual(expected, result);
}