Skip to content

Commit

Permalink
Revert "Trying things to figure out why linux unit test fails"
Browse files Browse the repository at this point in the history
This reverts commit 4d4059b.

Signed-off-by: CodeTiger <[email protected]>
  • Loading branch information
mtsfoni committed Oct 14, 2023
1 parent 17773ea commit fc76c9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
framework: ['net6.0','net7.0']
timeout-minutes: 30

Expand Down
12 changes: 5 additions & 7 deletions CycloneDX/Runner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ public Runner(IFileSystem fileSystem = null,
IProjectFileService projectFileService = null,
ISolutionFileService solutionFileService = null)
{
var testfileSystem = new FileSystem();

this.fileSystem = fileSystem ?? new FileSystem() ;
this.dotnetCommandService = dotnetCommandService ?? new DotnetCommandService();
this.projectAssetsFileService = projectAssetsFileService ?? new ProjectAssetsFileService(testfileSystem, this.dotnetCommandService, () => new AssetFileReader());
this.dotnetUtilsService = dotnetUtilsService ?? new DotnetUtilsService(testfileSystem, this.dotnetCommandService);
this.packagesFileService = packagesFileService ?? new PackagesFileService(testfileSystem);
this.projectFileService = projectFileService ?? new ProjectFileService(testfileSystem, this.dotnetUtilsService, this.packagesFileService, this.projectAssetsFileService);
this.solutionFileService = solutionFileService ?? new SolutionFileService(testfileSystem, this.projectFileService);
this.projectAssetsFileService = projectAssetsFileService ?? new ProjectAssetsFileService(this.fileSystem, this.dotnetCommandService, () => new AssetFileReader());
this.dotnetUtilsService = dotnetUtilsService ?? new DotnetUtilsService(this.fileSystem, this.dotnetCommandService);
this.packagesFileService = packagesFileService ?? new PackagesFileService(this.fileSystem);
this.projectFileService = projectFileService ?? new ProjectFileService(this.fileSystem, this.dotnetUtilsService, this.packagesFileService, this.projectAssetsFileService);
this.solutionFileService = solutionFileService ?? new SolutionFileService(this.fileSystem, this.projectFileService);
}
public async Task<int> HandleCommandAsync(string outputDirectory,
string SolutionOrProjectFile = default,
Expand Down

0 comments on commit fc76c9b

Please sign in to comment.