Skip to content

Commit 2591f0f

Browse files
CR: IsAssignableFrom
1 parent a2e2404 commit 2591f0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/Components/test/Auth/AuthorizeRouteViewTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public void WithoutCascadedAuthenticationState_WrapsOutputInCascadingAuthenticat
219219
// own CascadingAuthenticationState
220220
component => Assert.IsType<CascadingAuthenticationState>(component),
221221
component => Assert.IsType<CascadingValue<Task<AuthenticationState>>>(component),
222-
component => Assert.True(component is AuthorizeViewCore),
222+
component => Assert.IsAssignableFrom<AuthorizeViewCore>(component),
223223
component => Assert.IsType<LayoutView>(component),
224224
component => Assert.IsType<TestPageWithNoAuthorization>(component));
225225
}
@@ -250,7 +250,7 @@ public void WithCascadedAuthenticationState_DoesNotWrapOutputInCascadingAuthenti
250250

251251
// This is the hierarchy inside the AuthorizeRouteView. It doesn't contain a
252252
// further CascadingAuthenticationState
253-
component => Assert.True(component is AuthorizeViewCore),
253+
component => Assert.IsAssignableFrom<AuthorizeViewCore>(component),
254254
component => Assert.IsType<LayoutView>(component),
255255
component => Assert.IsType<TestPageWithNoAuthorization>(component));
256256
}

0 commit comments

Comments
 (0)