### Question:
WStringArrayTypeNode extends VariantTypeNode { @Override public String getValue() { return value; } WStringArrayTypeNode(BinaryReader binaryReader, ChunkHeader chunkHeader, BxmlNode parent, int length); @Override String getValue(); static final XMLOutputFactory XML_OUTPUT_FACTORY; }### Answer:
@Test public void testWStringArrayTypeNodeLengthArg() throws IOException { String[] array = new String[]{"one", "two"}; String expected = ""; for (String s : array) { expected += "<string>"; expected += s; expected += "</string>"; } String actual = new WStringArrayTypeNode(testBinaryReaderBuilder.putWString(String.join("\u0000", array)).build(), chunkHeader, parent, 14).getValue(); assertEquals(expected, actual); }
@Test public void testWStringArrayTypeNodeNoLengthArg() throws IOException { String[] array = new String[]{"one", "two"}; String expected = ""; for (String s : array) { expected += "<string>"; expected += s; expected += "</string>"; } String actual = new WStringArrayTypeNode(testBinaryReaderBuilder.putWord(14).putWString(String.join("\u0000", array)).build(), chunkHeader, parent, -1).getValue(); assertEquals(expected, actual); }