Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathas Costa committed Sep 29, 2023
1 parent ad9341c commit 75b15f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/DynaMight.UnitTests/Criteria/CriteriaTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@ public void LessOrEqual()
criteria.ToString().Should().MatchRegex($"\\#{FieldName} <= :{FieldName}_.{{32}}");
}

[Fact]
public void Not()
{
var criteria = new NotDynamoCriteria(new EqualDynamoCriteria<string>(FieldName, FieldValue));
criteria.Should().NotBeNull();
criteria.ToString().Should().MatchRegex($"NOT\\(\\#{FieldName} = :{FieldName}_.{{32}}\\)");
}

[Fact]
public void NotExists()
{
Expand Down

0 comments on commit 75b15f5

Please sign in to comment.