Skip to content

Commit e3e1409

Browse files
author
Gurpreet Singh
committed
remove un used property function
1 parent 32fd607 commit e3e1409

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/TestStack.BDDfy/Configuration/IHumanizer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ namespace TestStack.BDDfy.Configuration
44
{
55
public interface IHumanizer
66
{
7-
Func<string, bool> PreserveCasingWhen { get; set; }
87
string Humanize(string input);
98
}
109
}

src/TestStack.BDDfy/DefaultHumanizer.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ internal partial class DefaultHumanizer: IHumanizer
1212
{
1313
private static readonly TextInfo textInfo = CultureInfo.CurrentCulture.TextInfo;
1414

15-
public Func<string, bool> PreserveCasingWhen { get; set; } = input
16-
=> input.Replace("__", "-").Contains('_');
17-
1815
public string Humanize(string input)
1916
{
20-
var shouldPreserveCasing = PreserveCasingWhen(input);
17+
var shouldPreserveCasing = input.Replace("__", "-").Contains('_');
18+
2119
input = TokensPattern().Replace(input, "-#$1#-");
2220

2321
var words = input.Split(['_','-']);

0 commit comments

Comments
 (0)