Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 87fe10e

Browse files
committed
Unify crypto tests on Common\tests\Streams\PositionValueStream.
Moved the namespace to Test.IO.Streams, so that it bespeaks of the ability to be shared.
1 parent 13e7635 commit 87fe10e

File tree

5 files changed

+8
-94
lines changed

5 files changed

+8
-94
lines changed

src/Common/tests/Cryptography/AlgorithmImplementations/RSA/SignVerify.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Collections;
55
using System.Collections.Generic;
66
using System.IO;
7+
using Test.IO.Streams;
78
using Xunit;
89

910
namespace System.Security.Cryptography.Rsa.Tests

src/Common/tests/Streams/PositionValueStream.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4+
using System;
45
using System.IO;
56

6-
namespace System.Security.Cryptography.Rsa.Tests
7+
namespace Test.IO.Streams
78
{
89
internal class PositionValueStream : Stream
910
{

src/System.Security.Cryptography.Primitives/tests/PositionValueStream.cs

Lines changed: 0 additions & 91 deletions
This file was deleted.

src/System.Security.Cryptography.Primitives/tests/SimpleHashAlgorithmTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
using System.IO;
5+
using Test.IO.Streams;
56
using Xunit;
67

78
namespace System.Security.Cryptography.Hashing.Tests
@@ -250,4 +251,4 @@ private static uint ExpectedSum(int offset, int byteCount)
250251
}
251252
}
252253
}
253-
}
254+
}

src/System.Security.Cryptography.Primitives/tests/System.Security.Cryptography.Primitives.Tests.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@
2222
<Compile Include="HmacAlgorithmTest.cs" />
2323
<Compile Include="KeyedHashAlgorithmTests.cs" />
2424
<Compile Include="Length32Hash.cs" />
25-
<Compile Include="PositionValueStream.cs" />
2625
<Compile Include="SimpleHashAlgorithmTest.cs" />
2726
<Compile Include="Sum32Hash.cs" />
2827
<Compile Include="SymmetricAlgorithm\Minimal.cs" />
2928
<Compile Include="SymmetricAlgorithm\Trivial.cs" />
3029
<Compile Include="CryptographicException.cs" />
30+
<Compile Include="$(CommonTestPath)\Streams\PositionValueStream.cs">
31+
<Link>CommonTest\Streams\PositionValueStream.cs</Link>
32+
</Compile>
3133
</ItemGroup>
3234
<ItemGroup>
3335
<None Include="project.json" />

0 commit comments

Comments
 (0)