< Summary

Class:Azure.AI.TextAnalytics.CategorizedEntityCollection
Assembly:Azure.AI.TextAnalytics
File(s):C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\CategorizedEntityCollection.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:25
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
get_Warnings()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\textanalytics\Azure.AI.TextAnalytics\src\CategorizedEntityCollection.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System.Collections.Generic;
 5using System.Collections.ObjectModel;
 6
 7namespace Azure.AI.TextAnalytics
 8{
 9    /// <summary>
 10    /// Collection of <see cref="CategorizedEntity"/> objects in a document.
 11    /// </summary>
 12    public class CategorizedEntityCollection : ReadOnlyCollection<CategorizedEntity>
 13    {
 14        internal CategorizedEntityCollection(IList<CategorizedEntity> entities, IList<TextAnalyticsWarning> warnings)
 8415            : base(entities)
 16        {
 8417            Warnings = new ReadOnlyCollection<TextAnalyticsWarning>(warnings);
 8418        }
 19
 20        /// <summary>
 21        /// Warnings encountered while processing the document.
 22        /// </summary>
 1623        public IReadOnlyCollection<TextAnalyticsWarning> Warnings { get; }
 24    }
 25}

Methods/Properties

.ctor(...)
get_Warnings()