<PackageReference Include="NUnit" Version="4.3.0" />

GreaterThanOrEqualConstraint

Tests whether a value is greater than or equal to the value supplied to its constructor
using System.Runtime.CompilerServices; namespace NUnit.Framework.Constraints { [NullableContext(1)] [Nullable(0)] public class GreaterThanOrEqualConstraint : ComparisonConstraint { public GreaterThanOrEqualConstraint(object expected) : base(expected, "greater than or equal to ") { } protected override bool PerformComparison(ComparisonAdapter comparer, object actual, object expected, Tolerance tolerance) { return comparer.Compare(actual, tolerance.ApplyToValue(expected).LowerBound) >= 0; } } }