public void InitializeWithoutSerializer_DoesNotThrowException_WhenInputAndOutputTypeBothStream() { // arrange var runner = new GenericTestHandlerRunner <Stream, Stream>(); // act var ex = Record.Exception(() => runner.Initialize()); // assert ex.ShouldBeNull(); }
public void InitializeWithoutSerializer_ThrowsException_WhenOutputTypeIsNotStream() { // arrange var runner = new GenericTestHandlerRunner <Stream, string>(); // act var ex = Record.Exception(() => runner.Initialize()); // assert ex.ShouldBeOfType <LambdaInitializationException>(); }