public void ComputeEncodedLength_WalrusContentDefaultKeyRecordSize4096_ReturnsCorrectLength() { byte[] contentToEncode = Encoding.UTF8.GetBytes(WALRUS_CONTENT); long encodedContentLength; using (MemoryStream source = new MemoryStream(contentToEncode)) { encodedContentLength = Aes128GcmEncoding.ComputeEncodedLength(source.Length, 0, RECORD_SIZE_4096); } Assert.Equal(WALRUS_CONTENT_ENCODED_LENGTH, encodedContentLength); }