< Summary

Class:Microsoft.Azure.KeyVault.Cryptography.Algorithm
Assembly:Microsoft.Azure.KeyVault.Cryptography
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault.Cryptography\src\Algorithm.cs
Covered lines:5
Uncovered lines:1
Coverable lines:6
Total lines:32
Line coverage:83.3% (5 of 6)
Covered branches:1
Total branches:2
Branch coverage:50% (1 of 2)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-80%50%
get_Name()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault.Cryptography\src\Algorithm.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License. See License.txt in the project root for
 3// license information.
 4
 5using System;
 6
 7namespace Microsoft.Azure.KeyVault.Cryptography
 8{
 9    /// <summary>
 10    /// Abstract Algorithm.
 11    /// </summary>
 12    public abstract class Algorithm
 13    {
 14        private readonly string _name;
 15
 5816        protected Algorithm( string name )
 17        {
 5818            if ( string.IsNullOrEmpty( name ) )
 019                throw new ArgumentNullException( "name" );
 20
 5821            _name = name;
 5822        }
 23
 24        /// <summary>
 25        /// The name of the algorithm
 26        /// </summary>
 27        public string Name
 28        {
 1229            get { return _name; }
 30        }
 31    }
 32}

Methods/Properties

.ctor(...)
get_Name()