public void LessThanEqual() { int minValue = 1; int value = 2; Assert.ThrowsExact <ArgumentNullException>(() => Assert.LessThanEqual <string>(null, "z")); Assert.ThrowsExact <ArgumentNullException>(() => Assert.LessThanEqual <string>("a", null)); Assert.ThrowsExact <AssertionException>(() => Assert.LessThanEqual(value, minValue)); Assert.DoesNotThrow(() => Assert.LessThanEqual(minValue, minValue)); Assert.DoesNotThrow(() => Assert.LessThanEqual(minValue - 5, minValue)); Assert.ThrowsExact <AssertionException>(() => Assert.LessThanEqual(minValue + 5, minValue)); }