//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testOfPathWithCharset() throws Exception
        public virtual void testOfPathWithCharset()
        {
            CharSource charSource = CharSources.ofPath(Paths.get(fileName), Charsets.UTF_16LE);

            assertEquals(charSource.readFirstLine(), "Hello");
            assertEquals(charSource.length(), 5);
        }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void testOfPath() throws Exception
        public virtual void testOfPath()
        {
            CharSource charSource = CharSources.ofPath(Paths.get(fileName));

            assertEquals(charSource.readFirstLine(), "H\u0000e\u0000l\u0000l\u0000o\u0000");
            assertEquals(charSource.length(), 10);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testOfContentString() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
        public virtual void testOfContentString()
        {
            CharSource charSource = CharSources.ofContent("H\u0000e\u0000l\u0000l\u0000o\u0000");

            assertEquals(charSource.readFirstLine(), "H\u0000e\u0000l\u0000l\u0000o\u0000");
            assertEquals(charSource.length(), 10);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testOfContentByteArrayWithCharset() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
        public virtual void testOfContentByteArrayWithCharset()
        {
            sbyte[]    inputText  = "H\u0000e\u0000l\u0000l\u0000o\u0000".GetBytes(Encoding.UTF8);
            CharSource charSource = CharSources.ofContent(inputText, Charsets.UTF_16LE);

            assertEquals(charSource.readFirstLine(), "Hello");
            assertEquals(charSource.length(), 5);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testOfContentByteArray() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
        public virtual void testOfContentByteArray()
        {
            sbyte[]    inputText  = "H\u0000e\u0000l\u0000l\u0000o\u0000".GetBytes(Encoding.UTF8);
            CharSource charSource = CharSources.ofContent(inputText);

            assertEquals(charSource.readFirstLine(), "H\u0000e\u0000l\u0000l\u0000o\u0000");
            assertEquals(charSource.length(), 10);
        }