public void WhenAnythingWithSpecialCharacters_ThenReturnsTrue() { var result = Validations.Anything().Matches("atext^是⎈𐂯💩⚡"); result.Should().BeTrue(); }
public void WhenAnythingWithTooLong_ThenReturnsFalse() { var result = Validations.Anything(2, 10).Matches("atoolongstring"); result.Should().BeFalse(); }
public void WhenAnythingWithMaxChars_ThenReturnsTrue() { var result = Validations.Anything(2, 6).Matches("avalue"); result.Should().BeTrue(); }
public void WhenAnythingWithTooShort_ThenReturnsFalse() { var result = Validations.Anything(2, 10).Matches("a"); result.Should().BeFalse(); }