Beispiel #1
0
 public void IsDotNotation_ShoulRejectInput_WhenForbiddenCharactersAreUsed(string test)
 {
     ConventionRegex.IsDotNotation(test)
     .Should()
     .BeFalse();
 }
Beispiel #2
0
 public void IsDotNotation_ShoulRejectInput_WhenWrongCase(string test)
 {
     ConventionRegex.IsDotNotation(test)
     .Should()
     .BeFalse();
 }
Beispiel #3
0
 public void IsDotNotation_ShoulRejectLowerCase_WhenCaptialOnlyIsUsed(string test)
 {
     ConventionRegex.IsDotNotation(test, allowedLetters: RegexLetterCase.CapitalOnly)
     .Should()
     .BeFalse();
 }
Beispiel #4
0
 public void IsDotNotation_ShouldTakeacceptNumbers_WhenOptionIsSet(string test)
 {
     ConventionRegex.IsDotNotation(test, allowNumbers: true)
     .Should()
     .BeTrue();
 }
Beispiel #5
0
 public void IsDotNotation_ShouldTakeCaptialLetters_WhenCaptialEnumIsUsed(string test)
 {
     ConventionRegex.IsDotNotation(test, allowedLetters: RegexLetterCase.CapitalOnly, maxLength: 25)
     .Should()
     .BeTrue();
 }
Beispiel #6
0
 public void IsDotNotation_ShouldReturnTrue_WhenInputIsValid(string test)
 {
     ConventionRegex.IsDotNotation(test, maxLength: 21)
     .Should()
     .BeTrue();
 }