public void IsUpperCamelCase_ShouldReturnTrue_WhenInputHasDigits(string test) { ConventionRegex.IsUpperCamelCase(test, allowNumbers: true) .Should() .BeTrue(); }
public void IsUpperCamelCase_ShouldReturnTrue_WhenInputIsValid(string test) { ConventionRegex.IsUpperCamelCase(test) .Should() .BeTrue(); }
public void IsUpperCamelCase_ShoulRejectNumbers_WhenAllowNumbersIsFalse(string test) { ConventionRegex.IsUpperCamelCase(test, allowNumbers: false, maxLength: 50) .Should() .BeFalse(); }
public void IsUpperCamelCase_ShoulRejectInputs_WhenInWrongFormat(string test) { ConventionRegex.IsUpperCamelCase(test, maxLength: 40) .Should() .BeFalse(); }
public void IsUpperCamelCase_ShoulRejectShortInputs_WhenNotMatchingMinLength(string test) { ConventionRegex.IsUpperCamelCase(test, minLength: 15, maxLength: 30) .Should() .BeFalse(); }
public void IsUpperCamelCase_ShoulAcceptLongInputs_WhenMaxIsChanged(string test) { ConventionRegex.IsUpperCamelCase(test, maxLength: 50) .Should() .BeTrue(); }