//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void test_toReader_noBomUtf8() throws java.io.IOException
        public virtual void test_toReader_noBomUtf8()
        {
            sbyte[] bytes  = new sbyte[] { (sbyte)'H', (sbyte)'e', (sbyte)'l', (sbyte)'l', (sbyte)'o' };
            Reader  reader = UnicodeBom.toReader(new MemoryStream(bytes));
            string  str    = CharStreams.ToString(reader);

            assertEquals(str, "Hello");
        }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void test_toReader_bomUtf16LE_short() throws java.io.IOException
        public virtual void test_toReader_bomUtf16LE_short()
        {
            sbyte[] bytes  = new sbyte[] { X_FF, X_FE };
            Reader  reader = UnicodeBom.toReader(new MemoryStream(bytes));
            string  str    = CharStreams.ToString(reader);

            assertEquals(str, "");
        }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void test_toReader_notBomUtf16LE() throws java.io.IOException
        public virtual void test_toReader_notBomUtf16LE()
        {
            sbyte[] bytes  = new sbyte[] { X_00, X_FE, (sbyte)'M', (sbyte)'P' };
            Reader  reader = UnicodeBom.toReader(new MemoryStream(bytes));
            string  str    = CharStreams.ToString(reader);

            assertEquals(str, StringHelper.NewString(bytes, StandardCharsets.UTF_8));
        }
        //-------------------------------------------------------------------------
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void test_toReader_bomUtf16LE() throws java.io.IOException
        public virtual void test_toReader_bomUtf16LE()
        {
            sbyte[] bytes  = new sbyte[] { X_FF, X_FE, (sbyte)'H', X_00, (sbyte)'e', X_00, (sbyte)'l', X_00, (sbyte)'l', X_00, (sbyte)'o', X_00 };
            Reader  reader = UnicodeBom.toReader(new MemoryStream(bytes));
            string  str    = CharStreams.ToString(reader);

            assertEquals(str, "Hello");
        }