summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-11-22 10:57:29 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-11-22 10:57:29 +0700
commit947446ebbdb63aeea188357978e4fe7b716aa98c (patch)
tree93655e40c5d6875f5f607d80672b46a47e673715 /crypto
parentRefactor HmacDsaKCalculator (diff)
downloadBouncyCastle.NET-ed25519-947446ebbdb63aeea188357978e4fe7b716aa98c.tar.xz
Throw UnsupportedException instead
Diffstat (limited to 'crypto')
-rw-r--r--crypto/test/src/tls/test/PipedStream.cs36
1 files changed, 8 insertions, 28 deletions
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)
         {