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