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).
Inherited Members
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()