public void CryptographyServiceEncryptByteTest() { using (CryptographyService cryptographyService = new CryptographyService()) { string actual = cryptographyService.Encrypt(ExpectedByte); Assert.AreEqual(ExpectedByteContent, actual); } }
public void CryptographyServiceDecryptByteTest() { using (CryptographyService cryptographyService = new CryptographyService()) { byte actual = cryptographyService.DecryptByte(ExpectedByteContent); Assert.AreEqual(ExpectedByte, actual); } }
public void CryptographyServiceDecryptGuidTest() { using (CryptographyService cryptographyService = new CryptographyService()) { Guid actual = cryptographyService.DecryptGuid(ExpectedGuidContent); Assert.AreEqual(ExpectedGuid, actual); } }