Skip to content

fix: validate arguments of CopyTo #1402

fix: validate arguments of CopyTo

fix: validate arguments of CopyTo #1402

Triggered via pull request November 8, 2024 06:52
Status Failure
Total duration 5m 57s
Artifacts

ci.yml

on: pull_request
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 30 warnings
MockFileStream_WhenDestinationIsClosed_ShouldThrowObjectDisposedException: tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileStreamTests.cs#L322
Assert.That(caughtException, expression) Expected: <System.ObjectDisposedException> But was: null
MockFileStream_WhenDestinationIsClosed_ShouldThrowObjectDisposedException: tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileStreamTests.cs#L322
Assert.That(caughtException, expression) Expected: <System.ObjectDisposedException> But was: null
MockFileStream_WhenDestinationIsClosed_ShouldThrowObjectDisposedException: tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileStreamTests.cs#L322
Assert.That(caughtException, expression) Expected: <System.ObjectDisposedException> But was: null
Test (macos-latest)
Process completed with exit code 1.
MockFileStream_WhenDestinationIsClosed_ShouldThrowObjectDisposedException: tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileStreamTests.cs#L322
Assert.That(caughtException, expression) Expected: <System.ObjectDisposedException> But was: null
MockFileStream_WhenDestinationIsClosed_ShouldThrowObjectDisposedException: tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileStreamTests.cs#L322
Assert.That(caughtException, expression) Expected: <System.ObjectDisposedException> But was: null
MockFileStream_WhenDestinationIsClosed_ShouldThrowObjectDisposedException: tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileStreamTests.cs#L322
Assert.That(caughtException, expression) Expected: <System.ObjectDisposedException> But was: null
Test (ubuntu-latest)
Process completed with exit code 1.
MockFileStream_WhenDestinationIsClosed_ShouldThrowObjectDisposedException: tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileStreamTests.cs#L322
Assert.That(caughtException, expression) Expected: <System.ObjectDisposedException> But was: null
MockFileStream_WhenDestinationIsClosed_ShouldThrowObjectDisposedException: tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileStreamTests.cs#L322
Assert.That(caughtException, expression) Expected: <System.ObjectDisposedException> But was: null
MockFileStream_WhenDestinationIsClosed_ShouldThrowObjectDisposedException: tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileStreamTests.cs#L322
Assert.That(caughtException, expression) Expected: <System.ObjectDisposedException> But was: null
Test (windows-latest)
Process completed with exit code 1.
Test (macos-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryInfoTests.cs#L521
This call site is reachable on all platforms. 'DirectorySecurity' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (macos-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryInfoTests.cs#L521
This call site is reachable on all platforms. 'DirectoryInfoAclExtensions.Create(IDirectoryInfo, DirectorySecurity)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (macos-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryTests.cs#L2072
This call site is reachable on all platforms. 'DirectoryAclExtensions.GetAccessControl(IDirectory, string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (macos-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileArgumentPathTests.cs#L55
This call site is reachable on all platforms. 'IFile.Encrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (macos-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileArgumentPathTests.cs#L54
This call site is reachable on all platforms. 'IFile.Decrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (macos-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileTests.cs#L588
This call site is reachable on all platforms. 'IFile.Encrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (macos-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileTests.cs#L609
This call site is reachable on all platforms. 'IFile.Decrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (macos-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileTests.cs#L606
This call site is reachable on all platforms. 'IFile.Encrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (macos-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryInfoTests.cs#L521
This call site is reachable on all platforms. 'DirectorySecurity' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (macos-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryInfoTests.cs#L521
This call site is reachable on all platforms. 'DirectoryInfoAclExtensions.Create(IDirectoryInfo, DirectorySecurity)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (ubuntu-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryInfoTests.cs#L521
This call site is reachable on all platforms. 'DirectorySecurity' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (ubuntu-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryInfoTests.cs#L521
This call site is reachable on all platforms. 'DirectoryInfoAclExtensions.Create(IDirectoryInfo, DirectorySecurity)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (ubuntu-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileTests.cs#L588
This call site is reachable on all platforms. 'IFile.Encrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (ubuntu-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileTests.cs#L606
This call site is reachable on all platforms. 'IFile.Encrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (ubuntu-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileTests.cs#L609
This call site is reachable on all platforms. 'IFile.Decrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (ubuntu-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryTests.cs#L2072
This call site is reachable on all platforms. 'DirectoryAclExtensions.GetAccessControl(IDirectory, string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (ubuntu-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileArgumentPathTests.cs#L55
This call site is reachable on all platforms. 'IFile.Encrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (ubuntu-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileArgumentPathTests.cs#L54
This call site is reachable on all platforms. 'IFile.Decrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (ubuntu-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileArgumentPathTests.cs#L54
This call site is reachable on all platforms. 'IFile.Decrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (ubuntu-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileArgumentPathTests.cs#L55
This call site is reachable on all platforms. 'IFile.Encrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (windows-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryInfoTests.cs#L521
This call site is reachable on all platforms. 'DirectorySecurity' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (windows-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryInfoTests.cs#L521
This call site is reachable on all platforms. 'DirectoryInfoAclExtensions.Create(IDirectoryInfo, DirectorySecurity)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (windows-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryTests.cs#L2072
This call site is reachable on all platforms. 'DirectoryAclExtensions.GetAccessControl(IDirectory, string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (windows-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileArgumentPathTests.cs#L54
This call site is reachable on all platforms. 'IFile.Decrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (windows-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileArgumentPathTests.cs#L55
This call site is reachable on all platforms. 'IFile.Encrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (windows-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileTests.cs#L588
This call site is reachable on all platforms. 'IFile.Encrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (windows-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileTests.cs#L606
This call site is reachable on all platforms. 'IFile.Encrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (windows-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileTests.cs#L609
This call site is reachable on all platforms. 'IFile.Decrypt(string)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (windows-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryInfoTests.cs#L521
This call site is reachable on all platforms. 'DirectorySecurity' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Test (windows-latest): tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryInfoTests.cs#L521
This call site is reachable on all platforms. 'DirectoryInfoAclExtensions.Create(IDirectoryInfo, DirectorySecurity)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)