test: Remove a few Refresh() calls no longer needed

Some Refresh calls happen automatically now for IFileInfo, etc. in
MockFileSystem.
pull/201/head
Robert Dailey 1 year ago
parent 2e1c7bff7d
commit 4f0e365dd5

@ -46,7 +46,6 @@ public class ConfigCreationProcessorTest : CliIntegrationFixture
var yml = Fs.CurrentDirectory().File("file.yml");
Fs.AddEmptyFile(yml);
yml.Refresh(); // Required since file was created after IFileInfo was constructed
var act = () => sut.Process(yml.FullName);

@ -20,7 +20,6 @@ repositories:
";
Fs.AddFile(Paths.SettingsPath, new MockFileData(yamlData));
Paths.SettingsPath.Refresh();
var settings = sut.Settings;

@ -31,7 +31,6 @@ public class ConfigTemplateGuideServiceTest : TrashLibIntegrationFixture
{
var fsPath = templateDir.File(path);
Fs.AddEmptyFile(fsPath);
fsPath.Refresh();
return new TemplatePath(service, id, fsPath, false);
}

Loading…
Cancel
Save