@@ -48,16 +48,16 @@ public VersionVectorTest(ITestOutputHelper output) : base(output)
48
48
/// 5. Get the document id = "doc1" from the database.
49
49
/// 6. Get document's timestamp and check that the timestamp is the same as the timestamp from step 4.
50
50
/// </summary>
51
- [ Fact ( Skip = "Version vectors not turned on yet" ) ]
51
+ [ Fact ]
52
52
public void TestDocumentTimestamp ( )
53
53
{
54
54
using var doc = new MutableDocument ( "doc1" ) ;
55
- doc . Timestamp . ShouldBeNull ( "because the doc has not been saved yet" ) ;
55
+ doc . Timestamp . ShouldBe ( 0UL , "because the doc has not been saved yet" ) ;
56
56
DefaultCollection . Save ( doc ) ;
57
- doc . Timestamp . ShouldNotBeNull ( "because the doc is now saved" ) ;
57
+ doc . Timestamp . ShouldNotBe ( 0UL , "because the doc is now saved" ) ;
58
58
using var savedDoc = DefaultCollection . GetDocument ( "doc1" ) ;
59
59
savedDoc . ShouldNotBeNull ( "because the document was just saved" ) ;
60
- savedDoc ! . Timestamp . ShouldBe ( doc . Timestamp , "because the timestamp should not change just from a read" ) ;
60
+ savedDoc . Timestamp . ShouldBe ( doc . Timestamp , "because the timestamp should not change just from a read" ) ;
61
61
}
62
62
63
63
/// <summary>
@@ -72,7 +72,7 @@ public void TestDocumentTimestamp()
72
72
/// 5. Get the document id = "doc1" from the database.
73
73
/// 6. Get document's _revisionIDs and check that the value returned is not null
74
74
/// </summary>
75
- [ Fact ( Skip = "Version vectors not turned on yet" ) ]
75
+ [ Fact ]
76
76
public void TestDocumentRevisionHistory ( )
77
77
{
78
78
using var doc = new MutableDocument ( "doc1" ) ;
@@ -82,7 +82,7 @@ public void TestDocumentRevisionHistory()
82
82
using var savedDoc = DefaultCollection . GetDocument ( "doc1" ) ;
83
83
savedDoc . ShouldNotBeNull ( "because the document was just saved" ) ;
84
84
85
- savedDoc ! . RevisionIDs ( ) . ShouldNotBeNull ( "because the saved document should contain at least one revision ID" ) ;
85
+ savedDoc . RevisionIDs ( ) . ShouldNotBeNull ( "because the saved document should contain at least one revision ID" ) ;
86
86
}
87
87
88
88
public enum DefaultConflictLWWMode
@@ -110,7 +110,7 @@ public enum DefaultConflictLWWMode
110
110
/// 6.Start a single shot pull replicator to pull documents from "db2" to "db1".
111
111
/// 7. Get the document "doc2" from "db1" and check that the content is {"key": "value2"}.
112
112
/// </summary>
113
- [ Theory ( Skip = "Version vectors not turned on yet" ) ]
113
+ [ Theory ]
114
114
[ InlineData ( DefaultConflictLWWMode . SaveDB2First ) ]
115
115
[ InlineData ( DefaultConflictLWWMode . SaveDB1First ) ]
116
116
public void TestDefaultConflictResolver ( DefaultConflictLWWMode lwwMode )
@@ -148,7 +148,7 @@ public void TestDefaultConflictResolver(DefaultConflictLWWMode lwwMode)
148
148
149
149
using var doc = db1 . GetDefaultCollection ( ) . GetDocument ( "doc1" ) ;
150
150
doc . ShouldNotBeNull ( "because it was just saved" ) ;
151
- doc ! [ "key" ] . Value . ShouldBe ( expectedValue , "because otherwise the conflict resolver behaved unexpectedly" ) ;
151
+ doc [ "key" ] . Value . ShouldBe ( expectedValue , "because otherwise the conflict resolver behaved unexpectedly" ) ;
152
152
}
153
153
154
154
/// <summary>
@@ -168,7 +168,7 @@ public void TestDefaultConflictResolver(DefaultConflictLWWMode lwwMode)
168
168
/// 4.Start a single shot pull replicator to pull documents from "db2" to "db1".
169
169
/// 5. Get the document "doc1" from "db1" and check that the returned document is null.
170
170
/// </summary>
171
- [ Fact ( Skip = "Version vectors not turned on yet" ) ]
171
+ [ Fact ]
172
172
public void TestDefaultConflictResolverDeleteWins ( )
173
173
{
174
174
Database . Delete ( "db1" , null ) ;
0 commit comments