Skip to content

Commit

Permalink
include filtered commit on non inclusive tests to show that it gets e…
Browse files Browse the repository at this point in the history
…xcluded
  • Loading branch information
hahn-kev committed Nov 6, 2024
1 parent c2238ec commit b9d7d7a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SIL.Harmony.Tests/Db/QueryHelperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ public void WhereBeforeSnapshot_FiltersOnDate()
var snapshots = Snapshots([
Snapshot(id1, Time(1, 0)),
Snapshot(id2, Time(3, 0)),
Snapshot(filterCommit.Id, filterCommit.HybridDateTime),
Snapshot(id3, Time(4, 0)),
]);
snapshots.WhereBefore(filterCommit).Select(c => c.CommitId).Should().BeEquivalentTo([
Expand Down Expand Up @@ -323,6 +324,7 @@ public void WhereBeforeSnapshot_FiltersOnCounter()
var snapshots = Snapshots([
Snapshot(id1, Time(1, 1)),
Snapshot(id2, Time(1, 3)),
Snapshot(filterCommit.Id, filterCommit.HybridDateTime),
Snapshot(id3, Time(1, 4)),
]);
snapshots.WhereBefore(filterCommit).Select(c => c.CommitId).Should().BeEquivalentTo([
Expand Down Expand Up @@ -359,6 +361,7 @@ public void WhereBeforeSnapshot_FiltersOnId()
Snapshot(commitId1, hybridDateTime),
Snapshot(commitId2, hybridDateTime),
Snapshot(commitId3, hybridDateTime),
Snapshot(filterCommit.Id, filterCommit.HybridDateTime),
]);
snapshots.WhereBefore(filterCommit).Select(c => c.CommitId).Should().BeEquivalentTo([
commitId1
Expand Down Expand Up @@ -394,6 +397,7 @@ public void WhereBeforeCommit_FiltersOnDate()
Commit(id1, Time(1, 0)),
Commit(id2, Time(3, 0)),
Commit(id3, Time(4, 0)),
filterCommit
]);
commits.WhereBefore(filterCommit).Select(c => c.Id).Should().BeEquivalentTo([
id1
Expand Down Expand Up @@ -424,6 +428,7 @@ public void WhereBeforeCommit_FiltersOnCounter()
Commit(id1, Time(1, 1)),
Commit(id2, Time(1, 3)),
Commit(id3, Time(1, 4)),
filterCommit
]);
commits.WhereBefore(filterCommit).Select(c => c.Id).Should().BeEquivalentTo([
id1,
Expand Down Expand Up @@ -459,6 +464,7 @@ public void WhereBeforeCommit_FiltersOnId()
Commit(commitId1, hybridDateTime),
Commit(commitId2, hybridDateTime),
Commit(commitId3, hybridDateTime),
filterCommit
]);
commits.WhereBefore(filterCommit).Select(c => c.Id).Should().BeEquivalentTo([
commitId1
Expand Down

0 comments on commit b9d7d7a

Please sign in to comment.