//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testOfUrl() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
        public virtual void testOfUrl()
        {
            string     fullPathToFile = "file:///" + System.getProperty("user.dir") + "/" + fileName;
            URL        url            = new URL(fullPathToFile);
            CharSource charSource     = CharSources.ofUrl(url);

            assertEquals(charSource.readFirstLine(), "H\u0000e\u0000l\u0000l\u0000o\u0000");
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testOfUrlWithCharset() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
        public virtual void testOfUrlWithCharset()
        {
            string     fullPathToFile = "file:///" + System.getProperty("user.dir") + "/" + fileName;
            URL        url            = new URL(fullPathToFile);
            CharSource charSource     = CharSources.ofUrl(url, Charsets.UTF_16LE);

            assertEquals(charSource.readFirstLine(), "Hello");
        }