From 947446ebbdb63aeea188357978e4fe7b716aa98c Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 22 Nov 2023 10:57:29 +0700 Subject: Throw UnsupportedException instead --- crypto/test/src/tls/test/PipedStream.cs | 36 ++++++++------------------------- 1 file changed, 8 insertions(+), 28 deletions(-) (limited to 'crypto') diff --git a/crypto/test/src/tls/test/PipedStream.cs b/crypto/test/src/tls/test/PipedStream.cs index 82cd352af..66b913e10 100644 --- a/crypto/test/src/tls/test/PipedStream.cs +++ b/crypto/test/src/tls/test/PipedStream.cs @@ -26,45 +26,25 @@ namespace Org.BouncyCastle.Tls.Tests } } - public override bool CanRead - { - get { return true; } - } - - public override bool CanSeek - { - get { return false; } - } - - public override bool CanWrite - { - get { return true; } - } + public override bool CanRead => true; + public override bool CanSeek => false; + public override bool CanWrite => true; public override void Flush() { } - public override long Length - { - get { throw new NotImplementedException(); } - } + public override long Length => throw new NotSupportedException(); public override long Position { - get { throw new NotImplementedException(); } - set { throw new NotImplementedException(); } + get { throw new NotSupportedException(); } + set { throw new NotSupportedException(); } } - public override long Seek(long offset, SeekOrigin origin) - { - throw new NotImplementedException(); - } + public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(); - public override void SetLength(long value) - { - throw new NotImplementedException(); - } + public override void SetLength(long value) => throw new NotSupportedException(); public override int Read(byte[] buffer, int offset, int count) { -- cgit 1.4.1