< Summary

Class:Microsoft.Azure.Management.Search.Tests.SearchManagementClientTests
Assembly:Search.Management.Tests
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Management.Search\tests\Tests\SearchManagementClientTests.cs
Covered lines:0
Uncovered lines:14
Coverable lines:14
Total lines:34
Line coverage:0% (0 of 14)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
RequestIdIsReturnedInResponse()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Management.Search\tests\Tests\SearchManagementClientTests.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.Management.Search.Tests
 6{
 7    using System;
 8    using System.Net;
 9    using Management.Search;
 10    using Management.Search.Models;
 11    using Microsoft.Azure.Search.Tests.Utilities;
 12    using Xunit;
 13
 14    public sealed class SearchManagementClientTests : SearchTestBase<ResourceGroupFixture>
 15    {
 16        [Fact]
 17        public void RequestIdIsReturnedInResponse()
 18        {
 019            Run(() =>
 020            {
 021                SearchManagementClient client = GetSearchManagementClient();
 022
 023                // We need to use a constant GUID so that this test will still work in playback mode.
 024                var options = new SearchManagementRequestOptions(new Guid("c4cfce79-eb42-4e61-9909-84510c04706f"));
 025
 026                var listResponse =
 027                    client.Services.ListByResourceGroupWithHttpMessagesAsync(Data.ResourceGroupName, searchManagementReq
 028                Assert.Equal(HttpStatusCode.OK, listResponse.Response.StatusCode);
 029
 030                Assert.Equal(options.ClientRequestId.Value.ToString("D"), listResponse.RequestId);
 031            });
 032        }
 33    }
 34}

Methods/Properties

RequestIdIsReturnedInResponse()