public void StreamTest()
 {
     var stream = new MemoryStream(System.Text.Encoding.ASCII.GetBytes("StreamValue"));
     var expected = new StreamClass {Field = stream};
     var actual = Roundtrip(expected);
     Assert.AreEqual(stream.Length, actual.Field.Length);
 }
Beispiel #2
0
        public void StreamTest()
        {
            var stream   = new MemoryStream(System.Text.Encoding.ASCII.GetBytes("StreamValue"));
            var expected = new StreamClass {
                Field = stream
            };
            var actual = Roundtrip(expected);

            Assert.Equal(stream.Length, actual.Field.Length);
        }