Skip to content

Commit f2d1a87

Browse files
author
Furkan Küçük
committed
New tests fixed
1 parent 363ef8d commit f2d1a87

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ public void ReturnConfigurationFilePathIfCustomConfigurationIsSet()
177177
this.gitVersionOptions = new() { ConfigurationInfo = { ConfigurationFile = "Configuration/CustomConfig.yaml" } };
178178
var sp = GetServiceProvider(this.gitVersionOptions);
179179
this.configFileLocator = sp.GetRequiredService<IConfigurationFileLocator>();
180-
this.fileSystem = sp.GetRequiredService<IFileSystem>();
181-
182-
using var _ = this.fileSystem.SetupConfigFile(path: this.workingPath, fileName: ConfigFile);
183180

184181
var config = this.configFileLocator.GetConfigurationFile(this.workingPath);
185182
config.ShouldNotBe(Path.GetFullPath("Configuration/CustomConfig.yaml"));
@@ -196,9 +193,6 @@ public void ReturnConfigurationFilePathIfCustomConfigurationIsSet_InvalidConfigu
196193
this.gitVersionOptions = new() { ConfigurationInfo = { ConfigurationFile = configFile } };
197194
var sp = GetServiceProvider(this.gitVersionOptions);
198195
this.configFileLocator = sp.GetRequiredService<IConfigurationFileLocator>();
199-
this.fileSystem = sp.GetRequiredService<IFileSystem>();
200-
201-
using var _ = this.fileSystem.SetupConfigFile(path: this.workingPath, fileName: ConfigFile);
202196

203197
var config = this.configFileLocator.GetConfigurationFile(this.workingPath);
204198
config.ShouldNotBe(null);

0 commit comments

Comments
 (0)