improvements
This commit is contained in:
20
certmgrTest/CertStoreStorageTest.cs
Normal file
20
certmgrTest/CertStoreStorageTest.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using CertMgr.Core.Storage;
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace certmgrTest;
|
||||
|
||||
public class CertStoreStorageTest
|
||||
{
|
||||
[Test]
|
||||
public async Task First()
|
||||
{
|
||||
using (MemoryStream target = new MemoryStream())
|
||||
{
|
||||
CertStoreStorage storage = new CertStoreStorage();
|
||||
CertStoreStorageContext context = new CertStoreStorageContext(CertStoreLocation.User, CertStoreName.My, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.DefaultKeySet);
|
||||
context.Password = "aaa";
|
||||
await storage.ReadAsync(target, context, CancellationToken.None);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user