public void Export_ReturnsValidJson() { var query = new StringQuery("description:water and some other stuff"); var expected = JsonConvert.SerializeObject(new { query = "description:water and some other stuff" }, Formatting.None); Assert.AreEqual(expected, query.Export().ToString(Formatting.None)); }