Skip to content

Commit e42e00c

Browse files
Furkan Küçükkucuk-furkan
authored andcommitted
DoNotThrowWhenFileNameAreSame_WithDifferentCasing test removed beacuse case insensivity no longer supported for custom configuration files
1 parent a89e10f commit e42e00c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/GitVersion.Configuration.Tests/Configuration/ConfigurationFileLocatorTests.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -153,22 +153,6 @@ public void DoNotThrowWhenWorkingAndRepoPathsAreSame_WithDifferentCasing()
153153
Should.NotThrow(() => this.configFileLocator.Verify(this.workingPath, this.repoPath));
154154
}
155155

156-
[Test]
157-
public void DoNotThrowWhenFileNameAreSame_WithDifferentCasing()
158-
{
159-
this.workingPath = this.repoPath;
160-
161-
this.gitVersionOptions = new() { ConfigurationInfo = { ConfigurationFile = "MyConfig.yaml" } };
162-
var sp = GetServiceProvider(this.gitVersionOptions);
163-
this.configFileLocator = sp.GetRequiredService<IConfigurationFileLocator>();
164-
this.fileSystem = sp.GetRequiredService<IFileSystem>();
165-
166-
using var _ = this.fileSystem.SetupConfigFile(path: this.workingPath, fileName: ConfigFile.ToLower());
167-
168-
var config = Should.NotThrow(() => this.configFileLocator.GetConfigurationFile(this.workingPath));
169-
config.ShouldNotBe(null);
170-
}
171-
172156
[Test]
173157
public void ReturnConfigurationFilePathIfCustomConfigurationIsSet()
174158
{

0 commit comments

Comments
 (0)