public void GetFileTypeTest() { using (var tmp = new TempFile(Kernel32.FileAccess.FILE_GENERIC_READ, FileShare.Read)) Assert.That(GetFileType(tmp.hFile), Is.EqualTo(FileType.FILE_TYPE_DISK)); }
public unsafe void AddUsersToEncryptedFileTest() { using (var tmp = new TempFile()) { Assert.That(EncryptFile(tmp.FullName), ResultIs.Successful); using (var hStore = CertOpenSystemStore(default, "TrustedPeople"))