Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Minor change to test code to resolve the xUnit2013 build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate McMaster committed Oct 5, 2017
1 parent 6e9862e commit 3ac69c6
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Distributed;
using Microsoft.Extensions.DependencyInjection;
using Moq;
Expand All @@ -24,8 +21,7 @@ public void AddDistributedSqlServerCache_AddsAsSingleRegistrationService()
SqlServerCachingServicesExtensions.AddSqlServerCacheServices(services);

// Assert
Assert.Equal(1, services.Count);
var serviceDescriptor = services[0];
var serviceDescriptor = Assert.Single(services);
Assert.Equal(typeof(IDistributedCache), serviceDescriptor.ServiceType);
Assert.Equal(typeof(SqlServerCache), serviceDescriptor.ImplementationType);
Assert.Equal(ServiceLifetime.Singleton, serviceDescriptor.Lifetime);
Expand Down

0 comments on commit 3ac69c6

Please sign in to comment.