Ejemplo n.º 1
0
        public void WriteIf_with_format_should_write_if_the_condition_is_true(bool condition, string input, string expectedOutput)
        {
            var writer = new StringWriter();

            writer.WriteIf(condition, "{0}", input);

            writer.ToString().Should().Be(expectedOutput);
        }