示例#1
0
 public void IsUpperCamelCase_ShouldReturnTrue_WhenInputHasDigits(string test)
 {
     ConventionRegex.IsUpperCamelCase(test, allowNumbers: true)
     .Should()
     .BeTrue();
 }
示例#2
0
 public void IsUpperCamelCase_ShouldReturnTrue_WhenInputIsValid(string test)
 {
     ConventionRegex.IsUpperCamelCase(test)
     .Should()
     .BeTrue();
 }
示例#3
0
 public void IsUpperCamelCase_ShoulRejectNumbers_WhenAllowNumbersIsFalse(string test)
 {
     ConventionRegex.IsUpperCamelCase(test, allowNumbers: false, maxLength: 50)
     .Should()
     .BeFalse();
 }
示例#4
0
 public void IsUpperCamelCase_ShoulRejectInputs_WhenInWrongFormat(string test)
 {
     ConventionRegex.IsUpperCamelCase(test, maxLength: 40)
     .Should()
     .BeFalse();
 }
示例#5
0
 public void IsUpperCamelCase_ShoulRejectShortInputs_WhenNotMatchingMinLength(string test)
 {
     ConventionRegex.IsUpperCamelCase(test, minLength: 15, maxLength: 30)
     .Should()
     .BeFalse();
 }
示例#6
0
 public void IsUpperCamelCase_ShoulAcceptLongInputs_WhenMaxIsChanged(string test)
 {
     ConventionRegex.IsUpperCamelCase(test, maxLength: 50)
     .Should()
     .BeTrue();
 }