Esempio n. 1
0
        public void OpenStream_from_inline_content()
        {
            var content = new  ContentInline("Hello");

            using (var stream = content.OpenStream())
            {
                var actual = new byte[stream.Length];
                stream.Read(actual, 0, (int)stream.Length);
                Assert.AreElementsEqual(Encoding.UTF8.GetBytes("Hello"), actual);
            }
        }