コード例 #1
0
 public void VerifyInputChangedNewLine()
 {
     var writer = new EncodableStringWriter(Encoding.UTF8);
     writer.NewLine = "asd";
     writer.WriteLine("Test");
     Assert.That(writer.ToString(), Is.EqualTo("Test" + writer.NewLine));
 }
コード例 #2
0
 public void Clearable()
 {
     var writer = new EncodableStringWriter(Encoding.UTF8);
     writer.WriteLine("Test");
     writer.Clear();
     Assert.That(writer.ToString(), Is.EqualTo(string.Empty));
 }
コード例 #3
0
 public void ClearWriteableAftwards()
 {
     var writer = new EncodableStringWriter(Encoding.UTF8);
     writer.WriteLine("Test");
     writer.Clear();
     writer.WriteLine("Test2");
     Assert.That(writer.ToString(), Is.EqualTo("Test2" + writer.NewLine));
 }
コード例 #4
0
        public void NoInputNoOutput()
        {
            var writer = new EncodableStringWriter(Encoding.UTF8);

            Assert.That(writer.ToString(), Is.EqualTo(string.Empty));
        }