public void VerifyInputChangedNewLine() { var writer = new EncodableStringWriter(Encoding.UTF8); writer.NewLine = "asd"; writer.WriteLine("Test"); Assert.That(writer.ToString(), Is.EqualTo("Test" + writer.NewLine)); }
public void Clearable() { var writer = new EncodableStringWriter(Encoding.UTF8); writer.WriteLine("Test"); writer.Clear(); Assert.That(writer.ToString(), Is.EqualTo(string.Empty)); }
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)); }
public void NoInputNoOutput() { var writer = new EncodableStringWriter(Encoding.UTF8); Assert.That(writer.ToString(), Is.EqualTo(string.Empty)); }