Exemplo n.º 1
0
 public void AppendFormatDataNull()
 {
     using (var perf = new Perf())
     {
         perf.Append(StringHelper.ValidString(), null);
         Assert.IsNull(perf.Content);
     }
 }
Exemplo n.º 2
0
 public void AppendMessageNull()
 {
     using (var perf = new Perf())
     {
         perf.Append(null);
         Assert.IsNull(perf.Content);
     }
 }
Exemplo n.º 3
0
 public void AppendFormatNull()
 {
     using (var perf = new Perf())
     {
         perf.Append(null, StringHelper.ValidString(), StringHelper.NullEmptyWhiteSpace());
         Assert.IsNull(perf.Content);
     }
 }
Exemplo n.º 4
0
 public void AppendMesssage()
 {
     using (var perf = new Perf())
     {
         var data = StringHelper.ValidString();
         perf.Append(data);
         Assert.AreEqual <string>(data, perf.Content);
     }
 }
Exemplo n.º 5
0
 public void AppendFormat()
 {
     using (var perf = new Perf())
     {
         var format = "{0}{1}";
         var first  = StringHelper.ValidString();
         var second = StringHelper.ValidString();
         var output = format.FormatWithCulture(first, second);
         perf.Append(format, first, second);
         Assert.AreEqual <string>(output, perf.Content);
     }
 }