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