< Summary

Information
Class: Elsa.Testing.Shared.UnicodeRangeGenerator
Assembly: Elsa.Testing.Shared
File(s): /home/runner/work/elsa-core/elsa-core/src/common/Elsa.Testing.Shared/UnicodeRangeGenerator.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 37
Coverable lines: 37
Total lines: 70
Line coverage: 0%
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
GenerateUnicodeString()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/common/Elsa.Testing.Shared/UnicodeRangeGenerator.cs

#LineLine coverage
 1namespace Elsa.Testing.Shared;
 2
 3/// <summary>
 4/// Generates Unicode ranges.
 5/// </summary>
 6public static class UnicodeRangeGenerator
 7{
 8    /// <summary>
 9    /// Generates a range of Unicode characters.
 10    /// </summary>
 11    public static string GenerateUnicodeString()
 12    {
 13        // This method generates a string containing characters from various Unicode ranges.
 014        var sb = new System.Text.StringBuilder();
 15
 16        // Add some characters from various ranges
 017        sb.Append('a'); // Basic Latin
 018        sb.Append('\u0370'); // Greek and Coptic
 019        sb.Append('\u200B'); // Zero width space
 020        sb.Append('\u4E00'); // CJK Unified Ideographs
 21
 22        // German umlauts (in unicode):
 023        sb.Append('\u00E4'); // ä
 024        sb.Append('\u00F6'); // ö
 025        sb.Append('\u00FC'); // ü
 026        sb.Append('\u00DF'); // ß
 27
 28        // French characters (in unicode):
 029        sb.Append('\u00E0'); // à
 030        sb.Append('\u00E2'); // â
 031        sb.Append('\u00E7'); // ç
 032        sb.Append('\u00E8'); // è
 33
 34        // Chinese characters (in unicode):
 035        sb.Append('\u4E00'); // 一
 036        sb.Append('\u4E01'); // 丁
 037        sb.Append('\u4E02'); // 丂
 038        sb.Append('\u4E03'); // 七
 39
 40        // Russian characters (in unicode):
 041        sb.Append('\u0410'); // А
 042        sb.Append('\u0411'); // Б
 043        sb.Append('\u0412'); // В
 044        sb.Append('\u0413'); // Г
 045        sb.Append('\u0414'); // Д
 046        sb.Append('\u0415'); // Е
 47
 48        // Arabic characters (in unicode):
 049        sb.Append('\u0627'); // ا
 050        sb.Append('\u0628'); // ب
 051        sb.Append('\u0629'); // ة
 052        sb.Append('\u062A'); // ت
 53
 54        // Syriac characters (in unicode):
 055        sb.Append('\u0710'); // ܐ
 056        sb.Append('\u0711'); // ܑ
 057        sb.Append('\u0712'); // ܒ
 058        sb.Append('\u0713'); // ܓ
 059        sb.Append('\u0714'); // ܔ
 60
 61        // Hebrew characters (in unicode):
 062        sb.Append('\u05D0'); // א
 063        sb.Append('\u05D1'); // ב
 064        sb.Append('\u05D2'); // ג
 065        sb.Append('\u05D3'); // ד
 66
 067        return sb.ToString();
 68    }
 69
 70}

Methods/Properties

GenerateUnicodeString()