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

            streamDecorator.Invoking(s => s.Position = 10)
            .ShouldThrow <InvalidOperationException>();
        }