public void CarriageReturnLineFeed() { using (var tempFile = new TemporaryTextFile(BODY_TEXT)) { Assert.Equal(BODY_TEXT, tempFile.Body); tempFile.AppendText(ALT_ADDITIONAL_TEXT); Assert.Equal(BODY_TEXT + ALT_ADDITIONAL_TEXT, tempFile.Body); } }
public void AppendText() { using (var tempFile = new TemporaryTextFile(BODY_TEXT)) { Assert.Equal(BODY_TEXT, tempFile.Body); tempFile.AppendText(ADDITIONAL_TEXT); Assert.Equal(BODY_TEXT + ADDITIONAL_TEXT, tempFile.Body); } }