Skip to content

Commit

Permalink
Added SolrQueryInList test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Pope committed Dec 3, 2012
1 parent f076338 commit 50468fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions SolrNet.Tests/SolrQueryInListTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,12 @@ public void EmptyList_should_be_null_query() {
var q = new SolrQueryInList("id", new string[0]);
Assert.IsNull(Serialize(q));
}

[Test]
public void Fieldname_with_spaces()
{
var q = new SolrQueryInList("i have spaces", new[] { "one", "two thousand" });
Assert.AreEqual("(i\\ have\\ spaces:((one) OR (\"two thousand\")))", Serialize(q));
}
}
}

0 comments on commit 50468fd

Please sign in to comment.