summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/test/src/asn1/test/BitStringTest.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/test/src/asn1/test/BitStringTest.cs b/crypto/test/src/asn1/test/BitStringTest.cs
index 05be45941..f2ae3de97 100644
--- a/crypto/test/src/asn1/test/BitStringTest.cs
+++ b/crypto/test/src/asn1/test/BitStringTest.cs
@@ -19,8 +19,12 @@ namespace Org.BouncyCastle.Asn1.Tests
             // basic construction
             DerBitString s1 = new DerBitString(new byte[0], 0);
 
+            // check GetBytes()
             s1.GetBytes();
 
+            // check encoding/decoding
+            DerBitString derBit = (DerBitString)Asn1Object.FromByteArray(s1.GetEncoded());
+
             if (!Arrays.AreEqual(s1.GetEncoded(), Hex.Decode("030100")))
             {
                 Fail("zero encoding wrong");