< Summary

Class:Azure.ResourceManager.Network.Models.PfsGroup
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\PfsGroup.cs
Covered lines:6
Uncovered lines:12
Coverable lines:18
Total lines:71
Line coverage:33.3% (6 of 18)
Covered branches:1
Total branches:6
Branch coverage:16.6% (1 of 6)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%50%
get_None()-0%100%
get_PFS1()-100%100%
get_PFS2()-0%100%
get_PFS2048()-0%100%
get_ECP256()-0%100%
get_ECP384()-100%100%
get_PFS24()-0%100%
get_PFS14()-0%100%
get_Pfsmm()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-100%100%
GetHashCode()-0%0%
ToString()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\Models\PfsGroup.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;
 9using System.ComponentModel;
 10
 11namespace Azure.ResourceManager.Network.Models
 12{
 13    /// <summary> The Pfs Groups used in IKE Phase 2 for new child SA. </summary>
 14    public readonly partial struct PfsGroup : IEquatable<PfsGroup>
 15    {
 16        private readonly string _value;
 17
 18        /// <summary> Determines if two <see cref="PfsGroup"/> values are the same. </summary>
 19        public PfsGroup(string value)
 20        {
 3421            _value = value ?? throw new ArgumentNullException(nameof(value));
 3422        }
 23
 24        private const string NoneValue = "None";
 25        private const string PFS1Value = "PFS1";
 26        private const string PFS2Value = "PFS2";
 27        private const string PFS2048Value = "PFS2048";
 28        private const string ECP256Value = "ECP256";
 29        private const string ECP384Value = "ECP384";
 30        private const string PFS24Value = "PFS24";
 31        private const string PFS14Value = "PFS14";
 32        private const string PfsmmValue = "PFSMM";
 33
 34        /// <summary> None. </summary>
 035        public static PfsGroup None { get; } = new PfsGroup(NoneValue);
 36        /// <summary> PFS1. </summary>
 637        public static PfsGroup PFS1 { get; } = new PfsGroup(PFS1Value);
 38        /// <summary> PFS2. </summary>
 039        public static PfsGroup PFS2 { get; } = new PfsGroup(PFS2Value);
 40        /// <summary> PFS2048. </summary>
 041        public static PfsGroup PFS2048 { get; } = new PfsGroup(PFS2048Value);
 42        /// <summary> ECP256. </summary>
 043        public static PfsGroup ECP256 { get; } = new PfsGroup(ECP256Value);
 44        /// <summary> ECP384. </summary>
 645        public static PfsGroup ECP384 { get; } = new PfsGroup(ECP384Value);
 46        /// <summary> PFS24. </summary>
 047        public static PfsGroup PFS24 { get; } = new PfsGroup(PFS24Value);
 48        /// <summary> PFS14. </summary>
 049        public static PfsGroup PFS14 { get; } = new PfsGroup(PFS14Value);
 50        /// <summary> PFSMM. </summary>
 051        public static PfsGroup Pfsmm { get; } = new PfsGroup(PfsmmValue);
 52        /// <summary> Determines if two <see cref="PfsGroup"/> values are the same. </summary>
 053        public static bool operator ==(PfsGroup left, PfsGroup right) => left.Equals(right);
 54        /// <summary> Determines if two <see cref="PfsGroup"/> values are not the same. </summary>
 055        public static bool operator !=(PfsGroup left, PfsGroup right) => !left.Equals(right);
 56        /// <summary> Converts a string to a <see cref="PfsGroup"/>. </summary>
 057        public static implicit operator PfsGroup(string value) => new PfsGroup(value);
 58
 59        /// <inheritdoc />
 60        [EditorBrowsable(EditorBrowsableState.Never)]
 061        public override bool Equals(object obj) => obj is PfsGroup other && Equals(other);
 62        /// <inheritdoc />
 863        public bool Equals(PfsGroup other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnor
 64
 65        /// <inheritdoc />
 66        [EditorBrowsable(EditorBrowsableState.Never)]
 067        public override int GetHashCode() => _value?.GetHashCode() ?? 0;
 68        /// <inheritdoc />
 1669        public override string ToString() => _value;
 70    }
 71}