< Summary

Information
Class: MyNet.Text.TextCasing.UpperCasingTransform
Assembly: MyNet.Text
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Text/TextCasing/UpperCasingTransform.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 29
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
.ctor()100%11100%
Apply(...)100%11100%

File(s)

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

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="UpperCasingTransform.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System.Globalization;
 8
 9namespace MyNet.Text.TextCasing;
 10
 11/// <summary>
 12/// Transforms a string to upper case.
 13/// </summary>
 14public sealed class UpperCasingTransform : ITextCasingTransform
 15{
 16    /// <summary>
 17    /// Initializes a new instance of the <see cref="UpperCasingTransform"/> class.
 18    /// </summary>
 619    internal UpperCasingTransform() { }
 20
 21    /// <summary>
 22    /// Transforms the input to upper case.
 23    /// </summary>
 24    /// <param name="input">The string to transform.</param>
 25    /// <param name="culture">The culture to use for the transformation.</param>
 26    /// <returns>The transformed string in upper case.</returns>
 2127    public string Apply(string input, CultureInfo culture) => input.ToUpper(culture);
 28}
 29