Permalink
Browse files

Add passing tests

  • Loading branch information...
1 parent c15051a commit af72dd10515b70329bcbfc923a85572ec24d1962 @ayende committed Apr 19, 2012
Showing with 42 additions and 0 deletions.
  1. +41 −0 Raven.Tests/MailingList/SpecialChars.cs
  2. +1 −0 Raven.Tests/Raven.Tests.csproj
@@ -0,0 +1,41 @@
+using Raven.Client.Document;
+using Xunit;
+using System.Linq;
+
+namespace Raven.Tests.MailingList
+{
+ public class SpecialChars : RavenTest
+ {
+ [Fact]
+ public void ShouldWork()
+ {
+ using (var store = NewDocumentStore())
+ {
+ using (var session = store.OpenSession())
+ {
+ session.Query<User>()
+ .Where(x => x.LastName == "abc&edf")
+ .ToList();
+ }
+ }
+ }
+
+ [Fact]
+ public void ShouldWork_Remote()
+ {
+ using(GetNewServer())
+ using (var store = new DocumentStore
+ {
+ Url = "http://localhost:8079"
+ }.Initialize())
+ {
+ using (var session = store.OpenSession())
+ {
+ session.Query<User>()
+ .Where(x => x.LastName == "abc&edf")
+ .ToList();
+ }
+ }
+ }
+ }
+}
@@ -593,6 +593,7 @@
<Compile Include="MailingList\RyanD.cs" />
<Compile Include="MailingList\Scott.cs" />
<Compile Include="MailingList\SearchByMapReduceExample.cs" />
+ <Compile Include="MailingList\SpecialChars.cs" />
<Compile Include="MailingList\Stacey\Image.cs" />
<Compile Include="MailingList\Stacey\ImageByName.cs" />
<Compile Include="MailingList\Stacey\InServerTesting.cs" />

0 comments on commit af72dd1

Please sign in to comment.