Skip to content

Commit

Permalink
Added test for valid scenario where there are no valid types specified
Browse files Browse the repository at this point in the history
  • Loading branch information
iNinja committed Oct 23, 2024
1 parent 3b772fb commit 0394f34
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ public static TheoryData<ValidateTokenAsyncTokenTypeTheoryData> ValidateTokenAsy
ValidationParameters = CreateValidationParameters(),
});

theoryData.Add(new ValidateTokenAsyncTokenTypeTheoryData("Valid_UnknownTokenType_NoValidTokenTypes")
{
// If there are no valid token types, any token type is valid
CustomTokenType = "SomeUnknownType",
TokenValidationParameters = CreateTokenValidationParameters(null),
ValidationParameters = CreateValidationParameters(null),
});

theoryData.Add(new ValidateTokenAsyncTokenTypeTheoryData("Valid_CustomToken_AddedAsValidTokenType")
{
CustomTokenType = "PPT",
Expand Down

0 comments on commit 0394f34

Please sign in to comment.