public void ItThrowsWhenItIsLowerBound() { ValidationRule <int> sut = GetSut(2, "a"); Assert.Throws <ArgumentOutOfRangeException>(() => sut.Between(2, 4)); }
public void ItSucceedsWheBetween() { ValidationRule <int> sut = GetSut(3, "a"); sut.Between(2, 4); }
public void ItThrowsWhenValueIsToBig() { ValidationRule <int> sut = GetSut(4, "a"); Assert.Throws <ArgumentOutOfRangeException>(() => sut.Between(2, 3)); }