public void TestArrayToNewLineSeparatedString() { Assert.AreEqual("foo", StringUtil.ArrayToNewLineSeparatedString(new string[] { "foo" })); Assert.AreEqual("foo" + Environment.NewLine + "bar", StringUtil.ArrayToNewLineSeparatedString(new string[] { "foo", "bar" })); Assert.AreEqual("", StringUtil.ArrayToNewLineSeparatedString(new string[0])); Assert.AreEqual("", StringUtil.ArrayToNewLineSeparatedString(new string[1] { "" })); Assert.AreEqual("", StringUtil.ArrayToNewLineSeparatedString(new string[1] { null })); }