Skip to content

Commit

Permalink
Bump TestableIOSystemIOAbstractionsTestingHelpersVersion from 20.0.15…
Browse files Browse the repository at this point in the history
… to 21.0.2 (#227)

* Bump TestableIOSystemIOAbstractionsTestingHelpersVersion

Bumps `TestableIOSystemIOAbstractionsTestingHelpersVersion` from 20.0.15 to 21.0.2.

Updates `TestableIO.System.IO.Abstractions.TestingHelpers` from 20.0.15 to 21.0.2
- [Release notes](https://github.com/TestableIO/System.IO.Abstractions/releases)
- [Commits](TestableIO/System.IO.Abstractions@v20.0.15...v21.0.2)

Updates `TestableIO.System.IO.Abstractions.Wrappers` from 19.2.69 to 21.0.2
- [Release notes](https://github.com/TestableIO/System.IO.Abstractions/releases)
- [Commits](TestableIO/System.IO.Abstractions@v19.2.69...v21.0.2)

---
updated-dependencies:
- dependency-name: TestableIO.System.IO.Abstractions.TestingHelpers
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: TestableIO.System.IO.Abstractions.Wrappers
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Replace obsolete FromDirectoryName with New

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brian Ingenito <[email protected]>
  • Loading branch information
dependabot[bot] and bingenito authored Apr 1, 2024
1 parent 0f2ba4c commit 410d432
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<XunitVersion>2.7.0</XunitVersion>
<XunitRunnerVisualStudioVersion>2.5.7</XunitRunnerVisualStudioVersion>
<MoqVersion>4.20.70</MoqVersion>
<TestableIOSystemIOAbstractionsTestingHelpersVersion>20.0.15</TestableIOSystemIOAbstractionsTestingHelpersVersion>
<TestableIOSystemIOAbstractionsTestingHelpersVersion>21.0.2</TestableIOSystemIOAbstractionsTestingHelpersVersion>
<CoverletCollector>3.2.0</CoverletCollector>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions src/Crossroads/Services/PackageApplicationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private void CopyIncludeDirectories()

foreach (var includeDirectory in Option.Include)
{
IDirectoryInfo dirInfo = fileSystem.DirectoryInfo.FromDirectoryName(includeDirectory);
IDirectoryInfo dirInfo = fileSystem.DirectoryInfo.New(includeDirectory);
CopyDirectory(includeDirectory, Path.Combine(assetsDirectory, dirInfo.Name), true);
}
}
Expand All @@ -179,7 +179,7 @@ private string launcherSourceDirectory

private void CopyDirectory(string sourceDirName, string destDirName, bool copySubDirs)
{
IDirectoryInfo dir = fileSystem.DirectoryInfo.FromDirectoryName(sourceDirName);
IDirectoryInfo dir = fileSystem.DirectoryInfo.New(sourceDirName);

IDirectoryInfo[] dirs = dir.GetDirectories();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ public async Task Build_OnLinux_WithValidInclude_Success()
public async Task Build_Dispose_WorkingDirDeleteFailure__ResolveException()
{
var fileSystem = new Mock<IFileSystem>();
fileSystem.Setup(x => x.DirectoryInfo.FromDirectoryName(It.IsAny<string>())).Returns(It.IsAny<DirectoryInfoBase>());
fileSystem.Setup(x => x.DirectoryInfo.FromDirectoryName(It.IsAny<string>()).GetDirectories()).Returns(It.IsAny<DirectoryInfoBase[]>());
fileSystem.Setup(x => x.DirectoryInfo.FromDirectoryName(It.IsAny<string>()).GetFiles()).Returns(Array.Empty<FileInfoBase>);
fileSystem.Setup(x => x.DirectoryInfo.FromDirectoryName(It.IsAny<string>()).GetDirectories()).Returns(Array.Empty<DirectoryInfoBase>);
fileSystem.Setup(x => x.DirectoryInfo.New(It.IsAny<string>())).Returns(It.IsAny<DirectoryInfoBase>());
fileSystem.Setup(x => x.DirectoryInfo.New(It.IsAny<string>()).GetDirectories()).Returns(It.IsAny<DirectoryInfoBase[]>());
fileSystem.Setup(x => x.DirectoryInfo.New(It.IsAny<string>()).GetFiles()).Returns(Array.Empty<FileInfoBase>);
fileSystem.Setup(x => x.DirectoryInfo.New(It.IsAny<string>()).GetDirectories()).Returns(Array.Empty<DirectoryInfoBase>);
fileSystem.Setup(x => x.Directory.Exists(It.IsAny<string>())).Returns(true);
fileSystem.Setup(x => x.Directory.Delete(It.IsAny<string>(), It.IsAny<bool>())).Throws(new Exception());
var resource = new Mock<IResourcesAssemblyBuilder>();
Expand Down

0 comments on commit 410d432

Please sign in to comment.