Skip to content

Commit 8560692

Browse files
author
Gurpreet Singh
committed
fix all usages
1 parent 7609961 commit 8560692

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/TestStack.BDDfy.Tests/Scanner/FluentScanner/BDDfyUsingFluentApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public void WhenTitleIsNotProvidedItIsFetchedFromMethodName()
277277
.BDDfy();
278278

279279
var scenario = story.Scenarios.First();
280-
scenario.Title.ShouldBe(Configurator.Humanize(nameof(WhenTitleIsNotProvidedItIsFetchedFromMethodName)));
280+
scenario.Title.ShouldBe(Configurator.Humanizer.Humanize(nameof(WhenTitleIsNotProvidedItIsFetchedFromMethodName)));
281281
}
282282

283283
[Fact]

src/TestStack.BDDfy.Tests/Scanner/ReflectiveScanner/WhenCombinationOfExecutableAttributeAndMethodNamingConventionIsUsed.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ public void LegacyConsecutiveAssertionStepIsScanned()
125125

126126
void VerifyStepAndItsProperties(Expression<Action> stepMethodAction, ExecutionOrder expectedOrder, int expectedCount = 1)
127127
{
128-
var matchingSteps = _scenario.Steps.Where(s => s.Title.Trim() == Configurator.Humanize(Helpers.GetMethodInfo(stepMethodAction).Name));
128+
var matchingSteps = _scenario.Steps.Where(s => s.Title.Trim() == Configurator.Humanizer.Humanize(Helpers.GetMethodInfo(stepMethodAction).Name));
129129
matchingSteps.Count().ShouldBe(expectedCount);
130130
matchingSteps.All(s => s.ExecutionOrder == expectedOrder).ShouldBe(true);
131131
}
132132

133133
[Fact]
134134
public void IgnoredMethodShouldNotBeAddedToSteps()
135135
{
136-
var matchingSteps = _scenario.Steps.Where(s => s.Title == Configurator.Humanize(Helpers.GetMethodInfo(() => _sut.ThenIAmNotAStep()).Name));
136+
var matchingSteps = _scenario.Steps.Where(s => s.Title == Configurator.Humanizer.Humanize(Helpers.GetMethodInfo(() => _sut.ThenIAmNotAStep()).Name));
137137
matchingSteps.ShouldBeEmpty();
138138
}
139139
}

src/TestStack.BDDfy.Tests/Scanner/ReflectiveScanner/WhenMethodNamesFollowNamingConventionsOtherThanGivenWhenThen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void IncorrectSpecificationStepIsNotAdded()
8989

9090
void AssertSpecificationStepIsScannedProperly(Expression<Action> getSpecMethod)
9191
{
92-
var specMethods = _steps.Where(s => s.Title.Trim() == Configurator.Humanize(Helpers.GetMethodInfo(getSpecMethod).Name));
92+
var specMethods = _steps.Where(s => s.Title.Trim() == Configurator.Humanizer.Humanize(Helpers.GetMethodInfo(getSpecMethod).Name));
9393
specMethods.Count().ShouldBe(1);
9494
var specStep = specMethods.First();
9595
specStep.Asserts.ShouldBe(false);

src/TestStack.BDDfy.Tests/Scanner/ReflectiveScanner/WhenStepsAreDefinedInABaseClass.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ Scenario Scenario
4141
[RunStepWithArgs("ThenInTheBaseClass")]
4242
void ThenTheFollowingStepFromBaseClassIsScanned(string stepName)
4343
{
44-
Scenario.Steps.Count(s => s.Title == Configurator.Humanize(stepName)).ShouldBe(1);
44+
Scenario.Steps.Count(s => s.Title == Configurator.Humanizer.Humanize(stepName)).ShouldBe(1);
4545
}
4646

4747
[RunStepWithArgs("GivenInTheSubClass")]
4848
[RunStepWithArgs("WhenInTheSubClass")]
4949
[RunStepWithArgs("ThenInTheSubClass")]
5050
void ThenTheFollowingStepFromSubClassScanned(string stepName)
5151
{
52-
Scenario.Steps.Count(s => s.Title == Configurator.Humanize(stepName)).ShouldBe(1);
52+
Scenario.Steps.Count(s => s.Title == Configurator.Humanizer.Humanize(stepName)).ShouldBe(1);
5353
}
5454

5555
[Fact]

src/TestStack.BDDfy.Tests/Scanner/ReflectiveScanner/WhenTestClassUsesExecutableAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public WhenTestClassUsesExecutableAttributes()
6868

6969
private static string GetStepTextFromMethodName(Expression<Action> methodInfoAction)
7070
{
71-
return Configurator.Humanize(Helpers.GetMethodInfo(methodInfoAction).Name);
71+
return Configurator.Humanizer.Humanize(Helpers.GetMethodInfo(methodInfoAction).Name);
7272
}
7373

7474
[Fact]

0 commit comments

Comments
 (0)