Skip to content

Commit

Permalink
test: fix tests for Document.Id to accept IDs equal to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
LSViana committed Dec 3, 2023
1 parent 63fa300 commit fa16a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/YDotNet.Tests.Unit/Document/IdTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace YDotNet.Tests.Unit.Document;
public class IdTests
{
[Test]
public void IsGreaterThanZeroByDefault()
public void IsGreaterOrEqualToZeroByDefault()
{
// Arrange
var doc = new Doc();
Expand All @@ -15,6 +15,6 @@ public void IsGreaterThanZeroByDefault()
var id = doc.Id;

// Assert
Assert.That(id, Is.GreaterThan(expected: 0));
Assert.That(id, Is.GreaterThanOrEqualTo(expected: 0));
}
}

0 comments on commit fa16a7e

Please sign in to comment.