< Summary

Class:Microsoft.Azure.Search.Models.QueryOption
Assembly:Microsoft.Azure.Search.Data
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Data\src\Customizations\Documents\Models\QueryOption.cs
Covered lines:0
Uncovered lines:9
Coverable lines:9
Total lines:29
Line coverage:0% (0 of 9)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-0%100%
.ctor(...)-0%100%
get_Name()-0%100%
get_Value()-0%100%
ToString()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Search.Data\src\Customizations\Documents\Models\QueryOption.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
 5namespace Microsoft.Azure.Search.Models
 6{
 7    using System.Collections.Generic;
 8    using Common;
 9
 10    internal struct QueryOption
 11    {
 012        public QueryOption(string name, string value) : this()
 13        {
 014            Name = name;
 015            Value = value;
 016        }
 17
 018        public QueryOption(string name, IEnumerable<string> values) : this(name, values.ToCommaSeparatedString())
 19        {
 20            // Do nothing.
 021        }
 22
 023        public string Name { get; }
 24
 025        public string Value { get; }
 26
 027        public override string ToString() => $"{Name}={Value}";
 28    }
 29}