< Summary

Class:Azure.ResourceManager.Resources.Models.ApplicationArtifactTypeExtensions
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ApplicationArtifactType.Serialization.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:28
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:8
Branch coverage:0% (0 of 8)

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\ApplicationArtifactType.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.ResourceManager.Resources.Models
 11{
 12    internal static class ApplicationArtifactTypeExtensions
 13    {
 014        public static string ToSerialString(this ApplicationArtifactType value) => value switch
 015        {
 016            ApplicationArtifactType.Template => "Template",
 017            ApplicationArtifactType.Custom => "Custom",
 018            _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApplicationArtifactType value.")
 019        };
 20
 21        public static ApplicationArtifactType ToApplicationArtifactType(this string value)
 22        {
 023            if (string.Equals(value, "Template", StringComparison.InvariantCultureIgnoreCase)) return ApplicationArtifac
 024            if (string.Equals(value, "Custom", StringComparison.InvariantCultureIgnoreCase)) return ApplicationArtifactT
 025            throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ApplicationArtifactType value.");
 26        }
 27    }
 28}