@@ -49,6 +49,50 @@ public void SanitizeValidParticipant_ShouldReturnExpectedResult(string input, st
49
49
actual . ShouldBe ( expected ) ;
50
50
}
51
51
52
+ [ TestCase ( "feature/1234-is-id-with-something-kebab" , "feature_1234_is_id_with_something_kebab" ) ]
53
+ [ TestCase ( "feature/1234-IsSomethingPascalCase" , "feature_1234_IsSomethingPascalCase" ) ]
54
+ [ TestCase ( "feature/Caps-lower-something-kebab" , "feature_Caps_lower_something_kebab" ) ]
55
+ [ TestCase ( "feature/Caps-lower-is-kebab" , "feature_Caps_lower_is_kebab" ) ]
56
+ [ TestCase ( "kebab-folder/1234-is-id-with-something-kebab" , "kebab_folder_1234_is_id_with_something_kebab" ) ]
57
+ [ TestCase ( "kebab-folder/1234-IsSomethingPascalCase" , "kebab_folder_1234_IsSomethingPascalCase" ) ]
58
+ [ TestCase ( "kebab-folder/Caps-lower-something-kebab" , "kebab_folder_Caps_lower_something_kebab" ) ]
59
+ [ TestCase ( "kebab-folder/Caps-lower-is-kebab" , "kebab_folder_Caps_lower_is_kebab" ) ]
60
+ [ TestCase ( "PascalCaseFolder/1234-is-id-with-something-kebab" , "PascalCaseFolder_1234_is_id_with_something_kebab" ) ]
61
+ [ TestCase ( "PascalCaseFolder/1234-IsSomethingPascalCase" , "PascalCaseFolder_1234_IsSomethingPascalCase" ) ]
62
+ [ TestCase ( "PascalCaseFolder/Caps-lower-something-kebab" , "PascalCaseFolder_Caps_lower_something_kebab" ) ]
63
+ [ TestCase ( "PascalCaseFolder/Caps-lower-is-kebab" , "PascalCaseFolder_Caps_lower_is_kebab" ) ]
64
+ [ TestCase ( "1234-is-id-with-something-kebab" , "1234_is_id_with_something_kebab" ) ]
65
+ [ TestCase ( "1234-IsSomethingPascalCase" , "1234_IsSomethingPascalCase" ) ]
66
+ [ TestCase ( "Caps-lower-something-kebab" , "Caps_lower_something_kebab" ) ]
67
+ [ TestCase ( "Caps-lower-is-kebab" , "Caps_lower_is_kebab" ) ]
68
+ [ TestCase ( "feature/all-lower-is-kebab" , "feature_all_lower_is_kebab" ) ]
69
+ [ TestCase ( "feature/24321-Upperjustoneword" , "feature_24321_Upperjustoneword" ) ]
70
+ [ TestCase ( "feature/justoneword" , "feature_justoneword" ) ]
71
+ [ TestCase ( "feature/PascalCase" , "feature_PascalCase" ) ]
72
+ [ TestCase ( "feature/PascalCase-with-kebab" , "feature_PascalCase_with_kebab" ) ]
73
+ [ TestCase ( "feature/12414" , "feature_12414" ) ]
74
+ [ TestCase ( "feature/12414/12342-FeatureStoryTaskWithShortDescription" , "feature_12414_12342_FeatureStoryTaskWithShortDescription" ) ]
75
+ [ TestCase ( "feature/12414/12342-Short-description" , "feature_12414_12342_Short_description" ) ]
76
+ [ TestCase ( "feature/12414/12342-short-description" , "feature_12414_12342_short_description" ) ]
77
+ [ TestCase ( "feature/12414/12342-Short-Description" , "feature_12414_12342_Short_Description" ) ]
78
+ [ TestCase ( "release/1.0.0" , "release_1_0_0" ) ]
79
+ [ TestCase ( "releases" , "releases" ) ]
80
+ [ TestCase ( "feature" , "feature" ) ]
81
+ [ TestCase ( "feature/tfs1-Short-description" , "feature_tfs1_Short_description" ) ]
82
+ [ TestCase ( "feature/f2-Short-description" , "feature_f2_Short_description" ) ]
83
+ [ TestCase ( "feature/bug1" , "feature_bug1" ) ]
84
+ [ TestCase ( "f2" , "f2" ) ]
85
+ [ TestCase ( "feature/f2" , "feature_f2" ) ]
86
+ [ TestCase ( "feature/story2" , "feature_story2" ) ]
87
+ [ TestCase ( "master" , "master" ) ]
88
+ [ TestCase ( "develop" , "develop" ) ]
89
+ [ TestCase ( "main" , "main" ) ]
90
+ public void RegexSanitizeValidParticipant_ShouldReturnExpectedResult ( string input , string expected )
91
+ {
92
+ var actual = ParticipantSanitizer . RegexSanitizeParticipant ( input ) ;
93
+ actual . ShouldBe ( expected ) ;
94
+ }
95
+
52
96
[ TestCase ( "" ) ]
53
97
[ TestCase ( " " ) ]
54
98
public void SanitizeEmptyOrWhitespaceParticipant_ShouldThrow ( string value )
0 commit comments