Greater/Less Than
ShouldBeGreaterThan is the inverse of ShouldBeLessThan.
ShouldBeGreaterThan
var mrBurns = new Person { Name = "Mr. Burns", Salary = 30000 };
mrBurns.Salary.ShouldBeGreaterThan(300000000);Exception
mrBurns.Salary
should be greater than
300000000
but was
30000ShouldBeGreaterThanOrEqualTo
var mrBurns = new Person { Name = "Mr. Burns", Salary = 299999999 };
mrBurns.Salary.ShouldBeGreaterThanOrEqualTo(300000000);Exception
mrBurns.Salary
should be greater than or equal to
300000000
but was
299999999ShouldBeLessThan
Exception
ShouldBeLessThanOrEqualTo
Exception
Last updated