Appccelerate.IO.Streams.StreamDecoratorStreamNoStreamTest.ThrowsInvalidOperationExceptin_WhenNoStreamIsAssigned C# (CSharp) Method

ThrowsInvalidOperationExceptin_WhenNoStreamIsAssigned() private method

        public void ThrowsInvalidOperationExceptin_WhenNoStreamIsAssigned()
        {
            var streamDecorator = new StreamDecoratorTestStream(null);
            
            streamDecorator.Invoking(s => s.Position = 10)
                .ShouldThrow<InvalidOperationException>();
        }
    }