public void ArrayToDelimitedString() { Foo[] arr = new Foo[] { new Foo("Foo"), new Foo("Bar") }; Assert.AreEqual( ":Foo,:Bar", StringUtils.CollectionToCommaDelimitedString(arr)); Assert.AreEqual("null", StringUtils.CollectionToCommaDelimitedString <object>(null)); }