Skip to content

Commit a89fc5d

Browse files
authored
add disable discover enumeration = true for theory tests (#3042)
1 parent 94bafe6 commit a89fc5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/Microsoft.Identity.Web.Test/AuthorityHelpersTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ public void EnsureAuthorityIsV2(string initialAuthority, string expectedAuthorit
120120
}
121121

122122
[Theory]
123-
[MemberData(nameof(GetAuthorityWithoutQueryIfNeededTheoryData))]
124-
[MemberData(nameof(GetAuthorityWithoutQueryIfNeededExistingValuesTheoryData))]
125-
[MemberData(nameof(GetAuthorityWithoutQueryIfNeededOverlappingExistingValuesTheoryData))]
123+
[MemberData(nameof(GetAuthorityWithoutQueryIfNeededTheoryData), DisableDiscoveryEnumeration = true)]
124+
[MemberData(nameof(GetAuthorityWithoutQueryIfNeededExistingValuesTheoryData), DisableDiscoveryEnumeration = true)]
125+
[MemberData(nameof(GetAuthorityWithoutQueryIfNeededOverlappingExistingValuesTheoryData), DisableDiscoveryEnumeration = true)]
126126
public void GetAuthorityWithoutQueryIfNeeded(AuthorityHelpersTheoryData theoryData)
127127
{
128128
// arrange

tests/Microsoft.Identity.Web.Test/MsalTokenCacheProviderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void CreateTokenCacheSerializerTest()
2222
Assert.NotNull(tokenCacheProvider);
2323
}
2424

25-
[Theory, MemberData(nameof(CacheExpiryData))]
25+
[Theory, MemberData(nameof(CacheExpiryData), DisableDiscoveryEnumeration = true)]
2626
public void CacheEntryExpiry_SetCorrectly_Test(TimeSpan? optionsCacheExpiry, DateTimeOffset? suggestedCacheExpiry, TimeSpan expectedCacheExpiry)
2727
{
2828
// Arrange

0 commit comments

Comments
 (0)