assertTrue("Should be an rValue", func.isRValue());
}
private TypeFragment doTypeFragmentResource(String path, String typeName) throws IOException {
ResourceSet resourceSet = new ResourceSetImpl();
resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("rb", new PptpRubyResourceFactory());
File aRubyFile = TestDataProvider.getTestFile(new Path(path));
URI uri = URI.createFileURI(aRubyFile.getAbsolutePath());
Resource r = resourceSet.getResource(uri, true);
assertEquals("Should have loaded one thing", 1, r.getContents().size());