Skip to content

Commit 8958bde

Browse files
authored
[ApiAuthorization] Make test more reliable (#7092)
1 parent 29898df commit 8958bde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Identity/ApiAuthorization.IdentityServer/test/Configuration/ConfigureClientScopesTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
1+
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System.Linq;
@@ -67,10 +67,10 @@ public void PostConfigure_AddIdentityResourcesScopesToClients()
6767

6868
// Assert
6969
var spaClient = Assert.Single(options.Clients, c => c.ClientId == "TestSPA");
70-
Assert.Equal(new[] { "openid", "profile", "ResourceAPI" }, spaClient.AllowedScopes.OrderBy(id => id).ToArray());
70+
Assert.Equal(new[] { "openid", "profile", "ResourceAPI" }.OrderBy(id => id).ToArray(), spaClient.AllowedScopes.OrderBy(id => id).ToArray());
7171

7272
var nativeApp = Assert.Single(options.Clients, c => c.ClientId == "NativeApp");
73-
Assert.Equal(new[] { "offline_access", "openid", "profile", "ResourceAPI" }, nativeApp.AllowedScopes.OrderBy(id => id).ToArray());
73+
Assert.Equal(new[] { "offline_access", "openid", "profile", "ResourceAPI" }.OrderBy(id => id).ToArray(), nativeApp.AllowedScopes.OrderBy(id => id).ToArray());
7474
}
7575
}
7676
}

0 commit comments

Comments
 (0)