/** * This method tests the getResourceType() method. */ public void test2() { if (resource.getResourceType() == ResourceType.HtmlResource) { Console.WriteLine("getResourceType() PASSED"); } else { Console.WriteLine("getResourceType() FAILED"); } }