logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class NamingSanitizerTests

    Pure tests for NamingSanitizer. AppendSuffixUnlessPresent(string, string) is the doubling guard behind two reported bugs: Theme Builder appending "Theme" to a name that already ends in it (ThemeCreator.ResolveThemeFolderName) and Service Extension Creator appending the extension point's own name/type name unconditionally (ServiceExtensionNaming.ComposeTypeName).

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

    Constructors

    NamingSanitizerTests()

    Declaration
    public NamingSanitizerTests()

    Methods

    AppendSuffixUnlessPresent_NameAlreadyEndsInSuffix_DoesNotDouble()

    Declaration
    public void AppendSuffixUnlessPresent_NameAlreadyEndsInSuffix_DoesNotDouble()

    AppendSuffixUnlessPresent_NameDoesNotEndInSuffix_AppendsIt()

    Declaration
    public void AppendSuffixUnlessPresent_NameDoesNotEndInSuffix_AppendsIt()

    AppendSuffixUnlessPresent_NameEndsInSuffixWithDifferentCasing_DoesNotDouble()

    Declaration
    public void AppendSuffixUnlessPresent_NameEndsInSuffixWithDifferentCasing_DoesNotDouble()

    AppendSuffixUnlessPresent_NullName_IsTreatedAsEmpty()

    Declaration
    public void AppendSuffixUnlessPresent_NullName_IsTreatedAsEmpty()

    AppendSuffixUnlessPresent_NullOrEmptySuffix_ReturnsNameUnchanged()

    Declaration
    public void AppendSuffixUnlessPresent_NullOrEmptySuffix_ReturnsNameUnchanged()

    AppendSuffixUnlessPresent_TrimsWhitespaceAroundName()

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