< Summary

Information
Class: MyNet.Text.TextCasing.Casing
Assembly: MyNet.Text
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Text/TextCasing/Casing.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 54
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Text/TextCasing/Casing.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="Casing.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7namespace MyNet.Text.TextCasing;
 8
 9/// <summary>
 10/// Provides common text casing transformations.
 11/// </summary>
 12public static class Casing
 13{
 14    /// <summary>
 15    /// Gets transforms a string to upper case.
 16    /// </summary>
 617    public static ITextCasingTransform UpperCase { get; } = new UpperCasingTransform();
 18
 19    /// <summary>
 20    /// Gets transforms a string to lower case.
 21    /// </summary>
 622    public static ITextCasingTransform LowerCase { get; } = new LowerCasingTransform();
 23
 24    /// <summary>
 25    /// Gets transforms a string to title case.
 26    /// </summary>
 627    public static ITextCasingTransform TitleCase { get; } = new TitleCasingTransform();
 28
 29    /// <summary>
 30    /// Gets transforms a string to sentence case.
 31    /// </summary>
 632    public static ITextCasingTransform SentenceCase { get; } = new SentenceCasingTransform();
 33
 34    /// <summary>
 35    /// Gets transforms a string to PascalCase.
 36    /// </summary>
 637    public static ITextCasingTransform PascalCase { get; } = new PascalCasingTransform();
 38
 39    /// <summary>
 40    /// Gets transforms a string to camelCase.
 41    /// </summary>
 642    public static ITextCasingTransform CamelCase { get; } = new CamelCasingTransform();
 43
 44    /// <summary>
 45    /// Gets transforms a string to snake_case.
 46    /// </summary>
 647    public static ITextCasingTransform SnakeCase { get; } = new SnakeCasingTransform();
 48
 49    /// <summary>
 50    /// Gets transforms a string to kebab-case.
 51    /// </summary>
 652    public static ITextCasingTransform KebabCase { get; } = new KebabCasingTransform();
 53}
 54

Methods/Properties

.cctor()