< Summary

Class:Azure.AI.FormRecognizer.Models.FormPageRange
Assembly:Azure.AI.FormRecognizer
File(s):C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\FormPageRange.cs
Covered lines:5
Uncovered lines:0
Coverable lines:5
Total lines:32
Line coverage:100% (5 of 5)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\formrecognizer\Azure.AI.FormRecognizer\src\FormPageRange.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4namespace Azure.AI.FormRecognizer.Models
 5{
 6    /// <summary>
 7    /// Represents a page interval from the input document. Page numbers are 1-based.
 8    /// </summary>
 9    public struct FormPageRange
 10    {
 11        /// <summary>
 12        /// Initializes a new instance of the <see cref="FormPageRange"/> struct.
 13        /// </summary>
 14        /// <param name="first">The first page number of the range.</param>
 15        /// <param name="last">The last page number of the range.</param>
 16        internal FormPageRange(int first, int last)
 17        {
 13618            FirstPageNumber = first;
 13619            LastPageNumber = last;
 13620        }
 21
 22        /// <summary>
 23        /// The first page number of the range.
 24        /// </summary>
 28025        public int FirstPageNumber { get; }
 26
 27        /// <summary>
 28        /// The last page number of the range.
 29        /// </summary>
 26030        public int LastPageNumber { get; }
 31    }
 32}