-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
153 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,26 +45,35 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install .NET SDKs | ||
- name: Install .NET 6.x and 8.x | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
6.x | ||
8.x | ||
- name: Install .NET 9.0 | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 9.x | ||
dotnet-quality: 'preview' | ||
|
||
- name: Build Solution | ||
run: dotnet build "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/build.binlog" | ||
|
||
- name: Run Unit Tests (.NET Framework) | ||
if: ${{ matrix.name == 'Windows' }} | ||
run: dotnet test ${{ env.CommonTestArguments }} ${{ matrix.TestArguments}} --framework net472 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net472.binlog" | ||
|
||
- name: Run Unit Tests (.NET 6) | ||
- name: Run Unit Tests (.NET 6.0) | ||
run: dotnet test ${{ env.CommonTestArguments }} ${{ matrix.TestArguments}} --framework net6.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net6.0.binlog" | ||
|
||
- name: Run Unit Tests (.NET 8) | ||
- name: Run Unit Tests (.NET 8.0) | ||
run: dotnet test ${{ env.CommonTestArguments }} ${{ matrix.TestArguments}} --framework net8.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net8.0.binlog" | ||
|
||
- name: Run Unit Tests (.NET 9.0) | ||
run: dotnet test ${{ env.CommonTestArguments }} ${{ matrix.TestArguments}} --framework net9.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net9.0.binlog" | ||
|
||
- name: Code Coverage Report | ||
if: ${{ matrix.name == 'Linux' }} | ||
uses: irongut/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ntAbstractions.TestHelpers.UnitTests/EnvironmentAbstractions.TestHelpers.UnitTests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/EnvironmentAbstractions.TestHelpers/EnvironmentAbstractions.TestHelpers.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/EnvironmentAbstractions.TestHelpers/PublicAPI/net9.0/PublicAPI.Shipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#nullable enable |
74 changes: 74 additions & 0 deletions
74
src/EnvironmentAbstractions.TestHelpers/PublicAPI/net9.0/PublicAPI.Unshipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#nullable enable | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider.Add(string! name, string? value) -> void | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider.ExpandEnvironmentVariables(string! name) -> string? | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider.GetEnvironmentVariable(string! name) -> string? | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider.GetEnvironmentVariable(string! name, System.EnvironmentVariableTarget target) -> string? | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider.GetEnvironmentVariables() -> System.Collections.Generic.IReadOnlyDictionary<string!, string!>! | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider.GetEnvironmentVariables(System.EnvironmentVariableTarget target) -> System.Collections.Generic.IReadOnlyDictionary<string!, string!>! | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider.MockEnvironmentVariableProvider(bool addExistingEnvironmentVariables = false) -> void | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider.SetEnvironmentVariable(string! name, string? value) -> void | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider.SetEnvironmentVariable(string! name, string? value, System.EnvironmentVariableTarget target) -> void | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider.this[string! name].get -> string? | ||
EnvironmentAbstractions.TestHelpers.MockEnvironmentVariableProvider.this[string! name].set -> void | ||
System.MockEnvironmentProvider | ||
System.MockEnvironmentProvider.CommandLine.get -> string! | ||
System.MockEnvironmentProvider.CommandLine.set -> void | ||
System.MockEnvironmentProvider.CpuUsage.get -> System.Environment.ProcessCpuUsage | ||
System.MockEnvironmentProvider.CpuUsage.set -> void | ||
System.MockEnvironmentProvider.CurrentDirectory.get -> string! | ||
System.MockEnvironmentProvider.CurrentDirectory.set -> void | ||
System.MockEnvironmentProvider.CurrentManagedThreadId.get -> int | ||
System.MockEnvironmentProvider.CurrentManagedThreadId.set -> void | ||
System.MockEnvironmentProvider.Exit(int exitCode) -> void | ||
System.MockEnvironmentProvider.ExitCode.get -> int | ||
System.MockEnvironmentProvider.ExitCode.set -> void | ||
System.MockEnvironmentProvider.FailFast(string? message) -> void | ||
System.MockEnvironmentProvider.FailFast(string? message, System.Exception? exception) -> void | ||
System.MockEnvironmentProvider.GetCommandLineArgs() -> string![]! | ||
System.MockEnvironmentProvider.GetFolderPath(System.Environment.SpecialFolder folder) -> string! | ||
System.MockEnvironmentProvider.GetFolderPath(System.Environment.SpecialFolder folder, System.Environment.SpecialFolderOption option) -> string! | ||
System.MockEnvironmentProvider.GetLogicalDrives() -> string![]! | ||
System.MockEnvironmentProvider.HasShutdownStarted.get -> bool | ||
System.MockEnvironmentProvider.HasShutdownStarted.set -> void | ||
System.MockEnvironmentProvider.Is64BitOperatingSystem.get -> bool | ||
System.MockEnvironmentProvider.Is64BitOperatingSystem.set -> void | ||
System.MockEnvironmentProvider.Is64BitProcess.get -> bool | ||
System.MockEnvironmentProvider.Is64BitProcess.set -> void | ||
System.MockEnvironmentProvider.IsPrivilegedProcess.get -> bool | ||
System.MockEnvironmentProvider.MachineName.get -> string! | ||
System.MockEnvironmentProvider.MachineName.set -> void | ||
System.MockEnvironmentProvider.MockEnvironmentProvider(bool useExistingEnvironmentValues = true, bool addExistingEnvironmentVariables = false) -> void | ||
System.MockEnvironmentProvider.NewLine.get -> string! | ||
System.MockEnvironmentProvider.NewLine.set -> void | ||
System.MockEnvironmentProvider.OSVersion.get -> System.OperatingSystem! | ||
System.MockEnvironmentProvider.OSVersion.set -> void | ||
System.MockEnvironmentProvider.ProcessId.get -> int | ||
System.MockEnvironmentProvider.ProcessId.set -> void | ||
System.MockEnvironmentProvider.ProcessorCount.get -> int | ||
System.MockEnvironmentProvider.ProcessorCount.set -> void | ||
System.MockEnvironmentProvider.ProcessPath.get -> string? | ||
System.MockEnvironmentProvider.ProcessPath.set -> void | ||
System.MockEnvironmentProvider.SetCommandLineArgs(string![]! args) -> void | ||
System.MockEnvironmentProvider.SetFolderPath(System.Environment.SpecialFolder folder, string! path) -> void | ||
System.MockEnvironmentProvider.SetLogicalDrives(string![]! drives) -> void | ||
System.MockEnvironmentProvider.StackTrace.get -> string! | ||
System.MockEnvironmentProvider.StackTrace.set -> void | ||
System.MockEnvironmentProvider.SystemDirectory.get -> string! | ||
System.MockEnvironmentProvider.SystemDirectory.set -> void | ||
System.MockEnvironmentProvider.SystemPageSize.get -> int | ||
System.MockEnvironmentProvider.SystemPageSize.set -> void | ||
System.MockEnvironmentProvider.TickCount.get -> int | ||
System.MockEnvironmentProvider.TickCount.set -> void | ||
System.MockEnvironmentProvider.TickCount64.get -> long | ||
System.MockEnvironmentProvider.TickCount64.set -> void | ||
System.MockEnvironmentProvider.UserDomainName.get -> string! | ||
System.MockEnvironmentProvider.UserDomainName.set -> void | ||
System.MockEnvironmentProvider.UserInteractive.get -> bool | ||
System.MockEnvironmentProvider.UserInteractive.set -> void | ||
System.MockEnvironmentProvider.UserName.get -> string! | ||
System.MockEnvironmentProvider.UserName.set -> void | ||
System.MockEnvironmentProvider.Version.get -> System.Version! | ||
System.MockEnvironmentProvider.Version.set -> void | ||
System.MockEnvironmentProvider.WorkingSet.get -> long | ||
System.MockEnvironmentProvider.WorkingSet.set -> void |
2 changes: 1 addition & 1 deletion
2
src/EnvironmentAbstractions.UnitTests/EnvironmentAbstractions.UnitTests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
src/EnvironmentAbstractions/PublicAPI/net5.0/PublicAPI.Shipped.txt
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
src/EnvironmentAbstractions/PublicAPI/net9.0/PublicAPI.Shipped.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#nullable enable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.