public void AppendFormatDataNull() { using (var perf = new Perf()) { perf.Append(StringHelper.ValidString(), null); Assert.IsNull(perf.Content); } }
public void AppendMessageNull() { using (var perf = new Perf()) { perf.Append(null); Assert.IsNull(perf.Content); } }
public void AppendFormatNull() { using (var perf = new Perf()) { perf.Append(null, StringHelper.ValidString(), StringHelper.NullEmptyWhiteSpace()); Assert.IsNull(perf.Content); } }
public void AppendMesssage() { using (var perf = new Perf()) { var data = StringHelper.ValidString(); perf.Append(data); Assert.AreEqual <string>(data, perf.Content); } }
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); } }