Skip to content

Commit 802fd72

Browse files
Enhance test coverage and seal class
Updated the `azure-pipelines.yml` to run tests on all projects in the `src` directory by using a wildcard pattern, ensuring comprehensive test coverage. Changed `PluralTestSource` in `InflectorTests.cs` to a `sealed` class to prevent inheritance, maintaining its functionality as a data provider for pluralization tests.
1 parent 96520db commit 802fd72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ stages:
6262
- task: DotNetCoreCLI@2
6363
inputs:
6464
command: test
65-
projects: .\src\Humanizer.Tests\Humanizer.Tests.csproj
65+
projects: .\src\**\*.Tests.csproj
6666
arguments: -c $(BuildConfiguration) --coverage --xunit-info
6767
displayName: Run Tests
6868

src/Humanizer.Tests/InflectorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public void Kebaberize(string input, string expectedOutput) =>
159159
Assert.Equal(expectedOutput, input.Kebaberize());
160160
}
161161

162-
class PluralTestSource : IEnumerable<object[]>
162+
sealed class PluralTestSource : IEnumerable<object[]>
163163
{
164164
public IEnumerator<object[]> GetEnumerator()
165165
{

0 commit comments

Comments
 (0)