public void TextFormatting_must_return_formatted_text() { var file = new ReadTextFile(); var result = file.TextFormatting(_dictCount); Assert.AreEqual("наша:1", result); }
public async Task ReadWriteTextFiles() { string fromFile = @"C:\Тест1\1.txt"; string toFile = @"C:\Тест1\2.txt"; var file = new ReadTextFile(); IDictionary <string, int> dictionary = await file.ParseTextAsync(fromFile, ReadTextFile.ParamSortDic.ValueDesc); var textFormatting = file.TextFormatting(dictionary); var writeTextFile = new WriteTextFile(); await writeTextFile.WriteAsync(toFile, textFormatting); }