public void IsMixedKebabSnakeCase_ShoulRejectDots(string test) { ConventionRegex.IsSnakeCase(test, allowNumbers: false, maxLength: 30) .Should() .BeFalse(); }
public void IsSnakeCase_ShouldReturnTrue_WhenInputIsValid(string test) { ConventionRegex.IsSnakeCase(test) .Should() .BeTrue(); }
public void IsSnakeCase_ShoulRejectNumbers_WhenAllowNumbersIsFalse(string test) { ConventionRegex.IsSnakeCase(test, allowNumbers: false) .Should() .BeFalse(); }
public void IsSnakeCase_ShoulRejectCapitalInputs_WhenNotPermitted(string test) { ConventionRegex.IsSnakeCase(test, maxLength: 37) .Should() .BeFalse(); }
public void IsSnakeCase_ShoulRejectInputs_WhenInWrongFormat(string test) { ConventionRegex.IsSnakeCase(test) .Should() .BeFalse(); }
public void IsSnakeCase_ShoulAcceptLongInputs_WhenMaxIsChanged(string test) { ConventionRegex.IsSnakeCase(test, maxLength: 28, allowNumbers: true) .Should() .BeTrue(); }
public void IsSnakeCase_ShoulAcceptCapitalLetters_WhenEnumBothIsUsed(string test) { ConventionRegex.IsSnakeCase(test, allowedLetters: RegexLetterCase.Both) .Should() .BeTrue(); }