< Summary

Class:Azure.Search.Documents.Indexes.Models.SnowballTokenFilterLanguageExtensions
Assembly:Azure.Search.Documents
File(s):C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\SnowballTokenFilterLanguage.Serialization.cs
Covered lines:0
Uncovered lines:49
Coverable lines:49
Total lines:68
Line coverage:0% (0 of 49)
Covered branches:0
Total branches:67
Branch coverage:0% (0 of 67)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
ToSerialString(...)-0%0%
ToSnowballTokenFilterLanguage(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Azure.Search.Documents\src\Generated\Models\SnowballTokenFilterLanguage.Serialization.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9
 10namespace Azure.Search.Documents.Indexes.Models
 11{
 12    internal static class SnowballTokenFilterLanguageExtensions
 13    {
 014        public static string ToSerialString(this SnowballTokenFilterLanguage value) => value switch
 015        {
 016            SnowballTokenFilterLanguage.Armenian => "armenian",
 017            SnowballTokenFilterLanguage.Basque => "basque",
 018            SnowballTokenFilterLanguage.Catalan => "catalan",
 019            SnowballTokenFilterLanguage.Danish => "danish",
 020            SnowballTokenFilterLanguage.Dutch => "dutch",
 021            SnowballTokenFilterLanguage.English => "english",
 022            SnowballTokenFilterLanguage.Finnish => "finnish",
 023            SnowballTokenFilterLanguage.French => "french",
 024            SnowballTokenFilterLanguage.German => "german",
 025            SnowballTokenFilterLanguage.German2 => "german2",
 026            SnowballTokenFilterLanguage.Hungarian => "hungarian",
 027            SnowballTokenFilterLanguage.Italian => "italian",
 028            SnowballTokenFilterLanguage.Kp => "kp",
 029            SnowballTokenFilterLanguage.Lovins => "lovins",
 030            SnowballTokenFilterLanguage.Norwegian => "norwegian",
 031            SnowballTokenFilterLanguage.Porter => "porter",
 032            SnowballTokenFilterLanguage.Portuguese => "portuguese",
 033            SnowballTokenFilterLanguage.Romanian => "romanian",
 034            SnowballTokenFilterLanguage.Russian => "russian",
 035            SnowballTokenFilterLanguage.Spanish => "spanish",
 036            SnowballTokenFilterLanguage.Swedish => "swedish",
 037            SnowballTokenFilterLanguage.Turkish => "turkish",
 038            _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SnowballTokenFilterLanguage value.
 039        };
 40
 41        public static SnowballTokenFilterLanguage ToSnowballTokenFilterLanguage(this string value)
 42        {
 043            if (string.Equals(value, "armenian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilte
 044            if (string.Equals(value, "basque", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterL
 045            if (string.Equals(value, "catalan", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilter
 046            if (string.Equals(value, "danish", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterL
 047            if (string.Equals(value, "dutch", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLa
 048            if (string.Equals(value, "english", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilter
 049            if (string.Equals(value, "finnish", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilter
 050            if (string.Equals(value, "french", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterL
 051            if (string.Equals(value, "german", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterL
 052            if (string.Equals(value, "german2", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilter
 053            if (string.Equals(value, "hungarian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilt
 054            if (string.Equals(value, "italian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilter
 055            if (string.Equals(value, "kp", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterLangu
 056            if (string.Equals(value, "lovins", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterL
 057            if (string.Equals(value, "norwegian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilt
 058            if (string.Equals(value, "porter", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilterL
 059            if (string.Equals(value, "portuguese", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFil
 060            if (string.Equals(value, "romanian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilte
 061            if (string.Equals(value, "russian", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilter
 062            if (string.Equals(value, "spanish", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilter
 063            if (string.Equals(value, "swedish", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilter
 064            if (string.Equals(value, "turkish", StringComparison.InvariantCultureIgnoreCase)) return SnowballTokenFilter
 065            throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SnowballTokenFilterLanguage value.");
 66        }
 67    }
 68}