public void testString() { assertEquals("xxx", Vba.string(3, 'x')); assertEquals("", Vba.string(0, 'y')); try { String s = Vba.string(-2, 'z'); fail("expected error, got " + s); } catch (RuntimeException e) { assertMessage(e, "NegativeArraySizeException"); } assertEquals("", Vba.string(100, '\0')); }