Skip to content

Commit

Permalink
Add IsAboveMinimum to QualityExtensionsTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
KsiProgramming committed May 20, 2024
1 parent c54bf2f commit 5fd8ca9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Core.Tests/ProposedCode/Domain/QualityExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,18 @@ public void IsBelowLimit(int qualityValue, int limit, bool expectedResult)

result.Should().Be(expectedResult);
}

[Theory]
[InlineData(5, 0, true)]
[InlineData(0, 0, false)]
[InlineData(-5, 0, false)]
public void IsAboveMinimum(int qualityValue, int minimum, bool expectedResult)
{
var quality = new Quality(qualityValue);

var result = quality.IsAboveMinimum(minimum);

result.Should().Be(expectedResult);
}
}
}

0 comments on commit 5fd8ca9

Please sign in to comment.