public static void PrintAllText() { IReadText readText = new ReadText(); IWriteText writeText = new TextToStringWriter(); var text = readText.Read().Manipulate(GetManipulatorRules()); Console.Write(writeText.Write(text)); Console.ReadKey(); }
public void Should_be_able_to_write_text_to_string() { var writer = new TextToStringWriter(); writer.Write("foo").Should().Be("foo"); }