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 2 years ago
parent 2e1c7bff7d
commit 4f0e365dd5

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

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

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

Loading…
Cancel
Save