public void DisposeWithoutDisposableTransport([Values(true, false)] bool isOwned) { var transport = new MockHttpPipelineTransport(); var target = new DisposableHttpPipeline(transport, 0, 0, new[] { new MockPolicy(transport, HttpMessageSanitizer.Default) }, ResponseClassifier.Shared, isOwned); target.Dispose(); }
public void DisposeCallsDisposeInternal() { var target = new MockHttpPipelineTransport(); target.Dispose(); Assert.IsTrue(target.DisposeCalled); }