public void ItDoesntThrowsWhenBigEnough() { ValidationRule <string> sut = GetSut("aaa", "Var"); sut.MinLength(2); }
public void ItThrowsWhenTooSmall() { ValidationRule <string> sut = GetSut("aaa", "Var"); Assert.Throws <ArgumentOutOfRangeException>(() => sut.MinLength(10)); }