refactor: improve mocking tests in FileSystemTests
#2127
ci.yml
on: pull_request
Publish Tests Results
15s
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=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/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=net472]
|
|
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=net472]
|
|
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=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=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/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=net10.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=net10.0]
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
API-tests
|
3.05 KB |
sha256:a51dec6d87a00fbc1939a776318a6a67d9828bd062d1fad1957235a89ef2b5cd
|
|
|
Linux-artifacts
|
692 KB |
sha256:86e85fc79d601dae25f3087dec14516c51422b62550a2ea2acfce787fc4e4cc2
|
|
|
Windows-artifacts
|
879 KB |
sha256:2be503e2cb86741d7016e9167e00135c94f6c0683be92dbd1ec2d03d0f76fa45
|
|
|
macOS-artifacts
|
692 KB |
sha256:5b4ae837a33c488dbbed2959ecfc131bc01c979db1e791841fc66a0a0cf7659c
|
|