logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class StringUtilsTests

    Inheritance
    object
    StringUtilsTests
    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 StringUtilsTests

    Constructors

    StringUtilsTests()

    Declaration
    public StringUtilsTests()

    Methods

    Coalesce_Should_ReturnEmpty_When_AllNullOrEmpty()

    Declaration
    public void Coalesce_Should_ReturnEmpty_When_AllNullOrEmpty()

    Coalesce_Should_ReturnEmpty_When_OptionsIsNull()

    Declaration
    public void Coalesce_Should_ReturnEmpty_When_OptionsIsNull()

    Coalesce_Should_ReturnFirstNonEmpty()

    Declaration
    public void Coalesce_Should_ReturnFirstNonEmpty()

    Coalesce_Should_ReturnFirstValid_When_AllValid()

    Declaration
    public void Coalesce_Should_ReturnFirstValid_When_AllValid()

    Coalesce_Should_SkipEmptyStrings()

    Declaration
    public void Coalesce_Should_SkipEmptyStrings()

    FormatLogMessage_Should_CombinePrefixAndMessage()

    Declaration
    public void FormatLogMessage_Should_CombinePrefixAndMessage()

    FormatLogMessage_WithArgs_Should_FormatAndPrefix()

    Declaration
    public void FormatLogMessage_WithArgs_Should_FormatAndPrefix()

    FormatLogMessage_WithArgs_Should_HandleBadFormat()

    Declaration
    public void FormatLogMessage_WithArgs_Should_HandleBadFormat()

    IsNullOrWhiteSpace_Should_ReturnFalse_When_HasContent()

    Declaration
    public void IsNullOrWhiteSpace_Should_ReturnFalse_When_HasContent()

    IsNullOrWhiteSpace_Should_ReturnTrue_When_Empty()

    Declaration
    public void IsNullOrWhiteSpace_Should_ReturnTrue_When_Empty()

    IsNullOrWhiteSpace_Should_ReturnTrue_When_Null()

    Declaration
    public void IsNullOrWhiteSpace_Should_ReturnTrue_When_Null()

    IsNullOrWhiteSpace_Should_ReturnTrue_When_WhitespaceOnly()

    Declaration
    public void IsNullOrWhiteSpace_Should_ReturnTrue_When_WhitespaceOnly()

    SafeFormat_Should_FormatCorrectly_When_ValidArgs()

    Declaration
    public void SafeFormat_Should_FormatCorrectly_When_ValidArgs()

    SafeFormat_Should_ReturnEmpty_When_TemplateIsEmpty()

    Declaration
    public void SafeFormat_Should_ReturnEmpty_When_TemplateIsEmpty()

    SafeFormat_Should_ReturnEmpty_When_TemplateIsNull()

    Declaration
    public void SafeFormat_Should_ReturnEmpty_When_TemplateIsNull()

    SafeFormat_Should_ReturnFormatError_When_BadTemplate()

    Declaration
    public void SafeFormat_Should_ReturnFormatError_When_BadTemplate()

    SafeFormat_Should_ReturnTemplate_When_ArgsIsEmpty()

    Declaration
    public void SafeFormat_Should_ReturnTemplate_When_ArgsIsEmpty()

    SafeFormat_Should_ReturnTemplate_When_ArgsIsNull()

    Declaration
    public void SafeFormat_Should_ReturnTemplate_When_ArgsIsNull()

    SafeFormat_Should_ReturnTemplate_When_NoArgs()

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