public void TestGetContentFromFile() { string content = handler.GetContentFromFile(); Assert.IsTrue(content is string, "Content should be string"); List <string> collection = handler.ParceContentBySeparator(content, "."); int count = collection.Count(); Assert.AreEqual(32, count); int maxLengthRow = handler.GetIndexOfMaxLengthfRow(collection); Assert.AreEqual(22, maxLengthRow); if (File.Exists(this.pathOut)) { File.Delete(this.pathOut); } StreamWriter sw = File.AppendText(this.pathOut); handler.WriteRowsIntoFileRecursively(sw, collection); sw.Close(); }