You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.142
Former-commit-id: 7467d4b717762eeaf652d77f1486dd11ffb1ff1f
This commit is contained in:
parent
e52655b4dc
commit
0abdbe5a7d
@@ -15,6 +15,7 @@ namespace System.Security.Cryptography.ProtectedDataTests
|
||||
public static class ProtectedDataTests
|
||||
{
|
||||
[Fact]
|
||||
[PlatformSpecific(TestPlatforms.Windows)]
|
||||
public static void RoundTrip()
|
||||
{
|
||||
RoundTrip(null);
|
||||
@@ -38,6 +39,7 @@ namespace System.Security.Cryptography.ProtectedDataTests
|
||||
[InlineData(DataProtectionScope.CurrentUser, true)]
|
||||
[InlineData(DataProtectionScope.LocalMachine, false)]
|
||||
[InlineData(DataProtectionScope.LocalMachine, true)]
|
||||
[PlatformSpecific(TestPlatforms.Windows)]
|
||||
public static void ProtectEmptyData(DataProtectionScope scope, bool useEntropy)
|
||||
{
|
||||
// Use new byte[0] instead of Array.Empty<byte> to prove the implementation
|
||||
@@ -52,6 +54,7 @@ namespace System.Security.Cryptography.ProtectedDataTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[PlatformSpecific(TestPlatforms.Windows)]
|
||||
public static void NullEntropyEquivalence()
|
||||
{
|
||||
// Passing a zero-length array as entropy is equivalent to passing null as entropy.
|
||||
@@ -63,6 +66,7 @@ namespace System.Security.Cryptography.ProtectedDataTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[PlatformSpecific(TestPlatforms.Windows)]
|
||||
public static void NullEntropyEquivalence2()
|
||||
{
|
||||
// Passing a zero-length array as entropy is equivalent to passing null as entropy.
|
||||
@@ -74,6 +78,7 @@ namespace System.Security.Cryptography.ProtectedDataTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[PlatformSpecific(TestPlatforms.Windows)]
|
||||
public static void WrongEntropy()
|
||||
{
|
||||
// Passing a zero-length array as entropy is equivalent to passing null as entropy.
|
||||
|
||||
Reference in New Issue
Block a user