Assert.assertEquals(ref.toString(), "OUT");
}
@Test
public void arrayPortNoComponent() {
PortReference ref = PortReference.parse("BLAAH[0]");
Assert.assertEquals(ref.componentName(), null);
Assert.assertEquals(ref.portName(), "BLAAH");
Assert.assertEquals(ref.componentAndPortName(), null);
Assert.assertTrue(ref.isArrayPort());
Assert.assertEquals(ref.portIndex(), 0);
Assert.assertEquals(ref.toString(), "BLAAH[0]");
}