public void UnusableAfterDispose() { var content = new PooledStringContent(""); content.Dispose(); Assert.ThrowsAsync <ObjectDisposedException>(() => content.ReadAsStreamAsync()); }
public void DoubleDispose() { using (var content = new PooledStringContent("")) { content.Dispose(); } }