Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2018-09-27 22:36:23 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2018-09-27 23:47:05 +0300
commit01f56e7d4e569c96f2d4237d6d2ecfa341a3bc78 (patch)
tree11acc921a4011f0f5d05231212a23f055584a282 /mcs/class/System.Security/Test/System.Security.Cryptography.Pkcs/SignedCmsTest.cs
parent8ce85205d90c76a235c8b87d43dc9072848a3af7 (diff)
[System.Security] Switch tests to use embedded test resources
Diffstat (limited to 'mcs/class/System.Security/Test/System.Security.Cryptography.Pkcs/SignedCmsTest.cs')
-rw-r--r--mcs/class/System.Security/Test/System.Security.Cryptography.Pkcs/SignedCmsTest.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/mcs/class/System.Security/Test/System.Security.Cryptography.Pkcs/SignedCmsTest.cs b/mcs/class/System.Security/Test/System.Security.Cryptography.Pkcs/SignedCmsTest.cs
index 0a8c85e6853..cd1979fd0de 100644
--- a/mcs/class/System.Security/Test/System.Security.Cryptography.Pkcs/SignedCmsTest.cs
+++ b/mcs/class/System.Security/Test/System.Security.Cryptography.Pkcs/SignedCmsTest.cs
@@ -38,6 +38,8 @@ using System.Security.Cryptography;
using System.Security.Cryptography.Pkcs;
using System.Security.Cryptography.X509Certificates;
+using MonoTests.Helpers;
+
namespace MonoTests.System.Security.Cryptography.Pkcs {
[TestFixture]
@@ -441,9 +443,8 @@ namespace MonoTests.System.Security.Cryptography.Pkcs {
[Test]
public void CheckSignatureDetachedSignedCms ()
{
- string path = Path.Combine ("Test", "System.Security.Cryptography.Pkcs");
- var signedBytes = File.ReadAllBytes (Path.Combine (path, "detached.data"));
- var bytes = File.ReadAllBytes (Path.Combine (path, "detached.p7"));
+ var signedBytes = File.ReadAllBytes (TestResourceHelper.GetFullPathOfResource ("Test/System.Security.Cryptography.Pkcs/detached.data"));
+ var bytes = File.ReadAllBytes (TestResourceHelper.GetFullPathOfResource ("Test/System.Security.Cryptography.Pkcs/detached.p7"));
var oid = new Oid ("1.2.840.113549.1.7.2");
var contentInfo = new ContentInfo (oid, signedBytes);