Exemple #1
0
 public void IsMixedKebabSnakeCase_ShoulRejectDots(string test)
 {
     ConventionRegex.IsSnakeCase(test, allowNumbers: false, maxLength: 30)
     .Should()
     .BeFalse();
 }
Exemple #2
0
 public void IsSnakeCase_ShouldReturnTrue_WhenInputIsValid(string test)
 {
     ConventionRegex.IsSnakeCase(test)
     .Should()
     .BeTrue();
 }
Exemple #3
0
 public void IsSnakeCase_ShoulRejectNumbers_WhenAllowNumbersIsFalse(string test)
 {
     ConventionRegex.IsSnakeCase(test, allowNumbers: false)
     .Should()
     .BeFalse();
 }
Exemple #4
0
 public void IsSnakeCase_ShoulRejectCapitalInputs_WhenNotPermitted(string test)
 {
     ConventionRegex.IsSnakeCase(test, maxLength: 37)
     .Should()
     .BeFalse();
 }
Exemple #5
0
 public void IsSnakeCase_ShoulRejectInputs_WhenInWrongFormat(string test)
 {
     ConventionRegex.IsSnakeCase(test)
     .Should()
     .BeFalse();
 }
Exemple #6
0
 public void IsSnakeCase_ShoulAcceptLongInputs_WhenMaxIsChanged(string test)
 {
     ConventionRegex.IsSnakeCase(test, maxLength: 28, allowNumbers: true)
     .Should()
     .BeTrue();
 }
Exemple #7
0
 public void IsSnakeCase_ShoulAcceptCapitalLetters_WhenEnumBothIsUsed(string test)
 {
     ConventionRegex.IsSnakeCase(test, allowedLetters: RegexLetterCase.Both)
     .Should()
     .BeTrue();
 }