public void WriteLine_WithDefaultIndentWritesTheStandardIndent()
        {
            var builder = new MessageBuilder();
            builder.WriteLine("Some text");

            var actual = builder.Build();

            Assert.Equal("Some text\r\n", actual);
        }
        public void IncreaseIndent_IncreasesIndentByAFactorOf1()
        {
            var builder = new MessageBuilder();
            builder.IncreaseIndent();
            builder.WriteLine("Some text");
            var actual = builder.Build();

            Assert.Equal("    Some text\r\n", actual);
        }
Exemple #3
0
        public void IncreaseIndent_IncreasesIndentByAFactorOf1()
        {
            var builder = new MessageBuilder();

            builder.IncreaseIndent();
            builder.WriteLine("Some text");
            var actual = builder.Build();

            Assert.Equal("    Some text\r\n", actual);
        }
Exemple #4
0
        public void WriteLine_WithDefaultIndentWritesTheStandardIndent()
        {
            var builder = new MessageBuilder();

            builder.WriteLine("Some text");

            var actual = builder.Build();

            Assert.Equal("Some text\r\n", actual);
        }
 public void Constructor_InitialisesAnEmptyMessage()
 {
     var builder = new MessageBuilder();
     var actual = builder.Build();
     Assert.Equal(string.Empty, actual);
 }
 private static string BuildMessage(Action<IMessageBuilder> message)
 {
     var builder = new MessageBuilder();
     message(builder);
     return builder.Build();
 }