public void Setup() { var config = new CustomLocalStorageConfig(Path.Combine(@"test", "path"), "testing").WithDefaultKeyBuilder(); Storage = new SecureLocalStorage(config); Assert.NotNull(Storage); }
public void IsEncryptedOnlyForCurrentMachine() { var config = new CustomLocalStorageConfig(Path.Combine(@"test", "path"), "testing", "test1234"); var storage = new SecureLocalStorage(config); Assert.IsNotNull(storage); //Assert.DoesNotThrow(()=>Storage.Set("encryption","isEncrypted")); //Assert.Throws(typeof(CryptographicException), () => storage.Get("encryption")); Assert.Pass(); }