Пример #1
0
 public void TransformToStream_12KB(int x)
 {
     for (var i = 0; i < x; i++)
     {
         using var transformedStream = _middleware.TransformToStream(MyClass);
     }
 }
        public void TransformToStream()
        {
            var transformedStream = _middleware.TransformToStream(MyClass);

            Assert.NotNull(transformedStream);
            Assert.Equal(_serializedLength, transformedStream.ToArray().Length);
        }