< Summary

Class:Azure.ResourceManager.Resources.Models.OnErrorDeploymentTypeExtensions
Assembly:Azure.ResourceManager.Resources
File(s):C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OnErrorDeploymentType.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%
ToOnErrorDeploymentType(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\resources\Azure.ResourceManager.Resources\src\Generated\Models\OnErrorDeploymentType.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 OnErrorDeploymentTypeExtensions
 13    {
 014        public static string ToSerialString(this OnErrorDeploymentType value) => value switch
 015        {
 016            OnErrorDeploymentType.LastSuccessful => "LastSuccessful",
 017            OnErrorDeploymentType.SpecificDeployment => "SpecificDeployment",
 018            _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown OnErrorDeploymentType value.")
 019        };
 20
 21        public static OnErrorDeploymentType ToOnErrorDeploymentType(this string value)
 22        {
 023            if (string.Equals(value, "LastSuccessful", StringComparison.InvariantCultureIgnoreCase)) return OnErrorDeplo
 024            if (string.Equals(value, "SpecificDeployment", StringComparison.InvariantCultureIgnoreCase)) return OnErrorD
 025            throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown OnErrorDeploymentType value.");
 26        }
 27    }
 28}