Skip to content

refactor: improve mocking tests in FileSystemTests #2128

refactor: improve mocking tests in FileSystemTests

refactor: improve mocking tests in FileSystemTests #2128

Triggered via pull request April 9, 2026 19:06
Status Success
Total duration 5m 36s
Artifacts 4

ci.yml

on: pull_request
Matrix: Unit tests
Static code analysis
2m 33s
Static code analysis
Publish Tests Results
15s
Publish Tests Results
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileInfo.cs(27,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.1]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockDirectoryInfo.cs(42,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.1]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockDirectoryInfo.cs(42,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net8.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileInfo.cs(27,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net8.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileInfo.cs(27,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockDirectoryInfo.cs(42,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileInfo.cs(27,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net6.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockDirectoryInfo.cs(42,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net6.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockDirectoryInfo.cs(42,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileInfo.cs(27,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net9.0]

Artifacts

Produced during runtime
Name Size Digest
API-tests
3.04 KB
sha256:17a761a84de388bfcffa0efe9bf46b61eb55d05e811f637fc6e264aa9a3a714d
Linux-artifacts
692 KB
sha256:55fed77edb2d30db473a0e977b59ecb51d1b8178194279ecfd6b5c5ae3ff3383
Windows-artifacts
878 KB
sha256:eea1d1584b0943a8192ba1291c84d3e9fe20eab1dfed795f1650d203f7713565
macOS-artifacts
691 KB
sha256:bd984b5955681222076e7f4903b5f98cd1411ecf2c7f4d8ceff85c0c1a44adc8