From 8958bdee2e22ad6521379ede384d9b4d4fec233c Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Tue, 29 Jan 2019 11:48:42 -0800 Subject: [PATCH] [ApiAuthorization] Make test more reliable (#7092) --- .../test/Configuration/ConfigureClientScopesTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientScopesTests.cs b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientScopesTests.cs index 676d18f11a..7de26b4024 100644 --- a/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientScopesTests.cs +++ b/src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientScopesTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) .NET Foundation. All rights reserved. +// 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.Linq; @@ -67,10 +67,10 @@ namespace Microsoft.AspNetCore.ApiAuthorization.IdentityServer.Configuration // Assert var spaClient = Assert.Single(options.Clients, c => c.ClientId == "TestSPA"); - Assert.Equal(new[] { "openid", "profile", "ResourceAPI" }, spaClient.AllowedScopes.OrderBy(id => id).ToArray()); + Assert.Equal(new[] { "openid", "profile", "ResourceAPI" }.OrderBy(id => id).ToArray(), spaClient.AllowedScopes.OrderBy(id => id).ToArray()); var nativeApp = Assert.Single(options.Clients, c => c.ClientId == "NativeApp"); - Assert.Equal(new[] { "offline_access", "openid", "profile", "ResourceAPI" }, nativeApp.AllowedScopes.OrderBy(id => id).ToArray()); + Assert.Equal(new[] { "offline_access", "openid", "profile", "ResourceAPI" }.OrderBy(id => id).ToArray(), nativeApp.AllowedScopes.OrderBy(id => id).ToArray()); } } }