< Summary

Class:Azure.ResourceManager.Compute.Models.Enum27
Assembly:Azure.ResourceManager.Compute
File(s):C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\Enum27.cs
Covered lines:0
Uncovered lines:12
Coverable lines:12
Total lines:54
Line coverage:0% (0 of 12)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%100%
get_One()-0%100%
get_Three()-0%100%
get_Five()-0%100%
op_Equality(...)-0%100%
op_Inequality(...)-0%100%
op_Implicit(...)-0%100%
Equals(...)-0%0%
Equals(...)-0%100%
GetHashCode()-0%100%
ToString()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\compute\Azure.ResourceManager.Compute\src\Generated\Models\Enum27.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;
 10using System.Globalization;
 11
 12namespace Azure.ResourceManager.Compute.Models
 13{
 14    /// <summary> Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The default 
 15    public readonly partial struct Enum27 : IEquatable<Enum27>
 16    {
 17        private readonly int _value;
 18
 19        /// <summary> Determines if two <see cref="Enum27"/> values are the same. </summary>
 20        public Enum27(int value)
 21        {
 022            _value = value;
 023        }
 24
 25        private const int OneValue = 1;
 26        private const int ThreeValue = 3;
 27        private const int FiveValue = 5;
 28
 29        /// <summary> 1. </summary>
 030        public static Enum27 One { get; } = new Enum27(OneValue);
 31        /// <summary> 3. </summary>
 032        public static Enum27 Three { get; } = new Enum27(ThreeValue);
 33        /// <summary> 5. </summary>
 034        public static Enum27 Five { get; } = new Enum27(FiveValue);
 35        /// <summary> Determines if two <see cref="Enum27"/> values are the same. </summary>
 036        public static bool operator ==(Enum27 left, Enum27 right) => left.Equals(right);
 37        /// <summary> Determines if two <see cref="Enum27"/> values are not the same. </summary>
 038        public static bool operator !=(Enum27 left, Enum27 right) => !left.Equals(right);
 39        /// <summary> Converts a string to a <see cref="Enum27"/>. </summary>
 040        public static implicit operator Enum27(int value) => new Enum27(value);
 41
 42        /// <inheritdoc />
 43        [EditorBrowsable(EditorBrowsableState.Never)]
 044        public override bool Equals(object obj) => obj is Enum27 other && Equals(other);
 45        /// <inheritdoc />
 046        public bool Equals(Enum27 other) => Equals(_value, other._value);
 47
 48        /// <inheritdoc />
 49        [EditorBrowsable(EditorBrowsableState.Never)]
 050        public override int GetHashCode() => _value.GetHashCode();
 51        /// <inheritdoc />
 052        public override string ToString() => _value.ToString(CultureInfo.InvariantCulture);
 53    }
 54}