Esempio n. 1
0
        public void SetLength_ShouldThrowNotSupportedExceptionAsStreamIsReadOnly()
        {
            // Arrange
            var bytes = GetRandomBytes();
            var sharedMemoryStream = new SharedMemoryStream(bytes);

            // Act
            // Assert
            Assert.That(() => sharedMemoryStream.SetLength(123), Throws.TypeOf <NotSupportedException>());
        }