diff --git a/tests/Tgstation.Server.Tests/TestVersions.cs b/tests/Tgstation.Server.Tests/TestVersions.cs index d44fded9e2..c4d0524f16 100644 --- a/tests/Tgstation.Server.Tests/TestVersions.cs +++ b/tests/Tgstation.Server.Tests/TestVersions.cs @@ -204,10 +204,16 @@ namespace Tgstation.Server.Tests var fileDownloader = new CachingFileDownloader(Mock.Of>()); + var mockIOManager = new Mock(); + mockIOManager.Setup(x => x.FileExists(It.IsNotNull(), It.IsAny())).ReturnsAsync(true); + mockIOManager.Setup(x => x.CreateResolverForSubdirectory(It.IsNotNull())).Returns(mockIOManager.Object); + mockIOManager.Setup(x => x.ConcatPath(It.IsNotNull())).Returns(Path.Combine); + mockIOManager.Setup(x => x.ResolvePath(It.IsNotNull())).Returns(path => path); + ByondInstallerBase byondInstaller = platformIdentifier.IsWindows ? new WindowsByondInstaller( Mock.Of(), - Mock.Of(), + mockIOManager.Object, fileDownloader, mockGeneralConfigurationOptions.Object, mockSessionConfigurationOptions.Object, @@ -227,7 +233,7 @@ namespace Tgstation.Server.Tests new Lazy(() => null), new DefaultIOManager(new FileSystem()), loggerFactory.CreateLogger()), - Mock.Of(), + mockIOManager.Object, loggerFactory.CreateLogger(), loggerFactory);