public void WriteCsvTest() { char cr = Convert.ToChar(13); char lf = Convert.ToChar(10); string crlf = Convert.ToString(cr); crlf += lf; var sa = new StrArray(); sa.Add("A"); sa.Add("B"); sa.Add("C"); string expected = "A" + crlf + "B" + crlf + "C" + crlf; Assert.AreEqual(expected, sa.WriteCsv()); }