forked from ravendb/ravendb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fitzchak Yitzchaki
committed
May 7, 2012
1 parent
4cc016e
commit f639387
Showing
6 changed files
with
38 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ public VersioningConfiguration() | |
MaxRevisions = int.MaxValue; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ public static T[] GetRevisionsFor<T>(this ISyncAdvancedSessionOperation session, | |
.ToArray(); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
using System; | ||
using System.IO; | ||
using Raven.Imports.Newtonsoft.Json; | ||
using Raven.Client.Document; | ||
using Xunit; | ||
|
||
namespace Raven.Tests.Bugs | ||
{ | ||
public class CanReadLuceneProjectedDateTimeOffset | ||
{ | ||
[Fact] | ||
public void Can_read_date_time_offset_from_lucene_query() | ||
{ | ||
var jsonSerializer = new DocumentConvention().CreateSerializer(); | ||
using System; | ||
using System.IO; | ||
using Raven.Imports.Newtonsoft.Json; | ||
using Raven.Client.Document; | ||
using Xunit; | ||
|
||
namespace Raven.Tests.Bugs | ||
{ | ||
public class CanReadLuceneProjectedDateTimeOffset | ||
{ | ||
[Fact] | ||
public void Can_read_date_time_offset_from_lucene_query() | ||
{ | ||
var jsonSerializer = new DocumentConvention().CreateSerializer(); | ||
var deserialize = jsonSerializer.Deserialize<Test>(new JsonTextReader(new StringReader(@"{""Item"": ""20090402193554412""}"))); | ||
Assert.Equal(2009, deserialize.Item.Year); | ||
Assert.Equal(2009, deserialize.Item.Year); | ||
} | ||
|
||
private class Test | ||
{ | ||
public DateTimeOffset Item { get; set; } | ||
} | ||
} | ||
private class Test | ||
{ | ||
public DateTimeOffset Item { get; set; } | ||
} | ||
} | ||
} |