private void ShouldGenerateBase64String() { const string testString = "dGhpcyBpcyBhIHN0cmluZwo="; var testStringByte = EncryptorHelper.GetByteFromBase64(testString); EncryptorHelper.GetBase64FromByte(testStringByte).Should().Be(testString); }
private void ShouldReturn34ByteRandomKey() { var randomKey = EncryptorHelper.GetByteFromBase64(EncryptorHelper.GenerateRandomKey()); randomKey.Count().Should().Be(32); }