Skip to content

Commit 119fe32

Browse files
committed
CSHARP-2392: Minor change to tests.
1 parent b3e5ac2 commit 119fe32

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ Please see our [guidelines](CONTRIBUTING.md) for contributing to the driver.
117117
118118
* Chuck Lu https://github.com/chucklu
119119
* Alex Lyman [email protected]
120+
* John Murphy https://github.com/jsmurphy
120121
* Alexander Nagy [email protected]
121122
* Sridhar Nanjundeswaran https://github.com/sridharn
122123
* Rich Quackenbush [email protected]

tests/MongoDB.Driver.Core.Tests/ChangeStreamDocumentTests.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ public void BackingDocument_should_return_expected_result()
7272
result.Should().BeSameAs(backingDocument);
7373
}
7474

75-
[Fact]
76-
public void ClusterTime_should_return_expected_result()
75+
[Theory]
76+
[InlineData(1, 2)]
77+
[InlineData(3, 4)]
78+
public void ClusterTime_should_return_expected_result(int timestamp, int increment)
7779
{
78-
var value = new BsonTimestamp(DateTime.Now.Ticks);
80+
var value = new BsonTimestamp(timestamp, increment);
7981
var backingDocument = new BsonDocument { { "other", 1 }, { "clusterTime", value } };
8082
var subject = CreateSubject(backingDocument: backingDocument);
8183

0 commit comments

Comments
 (0)