logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class CsvEscapingTests

    Tests for CsvEscaping: the RFC 4180 rules a hand-rolled CSV writer gets wrong, the whitespace rule RFC 4180 does not have and every reader needs, and the promise that a row carries no line ending of its own.

    Inheritance
    object
    CsvEscapingTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Shared.Tests.Utils
    Assembly: Tests.dll
    Syntax
    public class CsvEscapingTests

    Constructors

    CsvEscapingTests()

    Declaration
    public CsvEscapingTests()

    Methods

    AppendRow_AppendsToWhateverTheBuilderAlreadyHolds()

    Declaration
    public void AppendRow_AppendsToWhateverTheBuilderAlreadyHolds()

    AppendRow_EscapesEveryFieldItWrites()

    Declaration
    public void AppendRow_EscapesEveryFieldItWrites()

    AppendRow_OfNullValuesLeavesTheBuilderUntouched()

    Declaration
    public void AppendRow_OfNullValuesLeavesTheBuilderUntouched()

    AppendRow_SeparatesFieldsWithCommasAndAddsNoLineEnding()

    Declaration
    public void AppendRow_SeparatesFieldsWithCommasAndAddsNoLineEnding()

    Field_DoublesAnInnerQuoteAndQuotesTheField()

    Declaration
    public void Field_DoublesAnInnerQuoteAndQuotesTheField()

    Field_LeavesAPlainValueAlone()

    Declaration
    public void Field_LeavesAPlainValueAlone()

    Field_LeavesInnerWhitespaceUnquoted()

    Declaration
    public void Field_LeavesInnerWhitespaceUnquoted()

    Field_LeavesUnicodeAlone()

    Declaration
    public void Field_LeavesUnicodeAlone()

    Field_QuotesALeadingTab()

    Declaration
    public void Field_QuotesALeadingTab()

    Field_QuotesAValueCarryingACarriageReturn()

    Declaration
    public void Field_QuotesAValueCarryingACarriageReturn()

    Field_QuotesAValueCarryingAComma()

    Declaration
    public void Field_QuotesAValueCarryingAComma()

    Field_QuotesAValueCarryingALineFeed()

    Declaration
    public void Field_QuotesAValueCarryingALineFeed()

    Field_QuotesAValueThatIsNothingButWhitespace()

    Declaration
    public void Field_QuotesAValueThatIsNothingButWhitespace()

    Field_QuotesLeadingWhitespaceSoAReaderCannotTrimItAway()

    Declaration
    public void Field_QuotesLeadingWhitespaceSoAReaderCannotTrimItAway()

    Field_QuotesTrailingWhitespaceSoAReaderCannotTrimItAway()

    Declaration
    public void Field_QuotesTrailingWhitespaceSoAReaderCannotTrimItAway()

    Field_TurnsNullIntoEmpty()

    Declaration
    public void Field_TurnsNullIntoEmpty()
    In this article
    © 2026 Serenity. All Rights Reserved