Skip to content

Commit

Permalink
CR: IsAssignableFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS committed Aug 2, 2019
1 parent a2e2404 commit 2591f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Components/test/Auth/AuthorizeRouteViewTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public void WithoutCascadedAuthenticationState_WrapsOutputInCascadingAuthenticat
// own CascadingAuthenticationState
component => Assert.IsType<CascadingAuthenticationState>(component),
component => Assert.IsType<CascadingValue<Task<AuthenticationState>>>(component),
component => Assert.True(component is AuthorizeViewCore),
component => Assert.IsAssignableFrom<AuthorizeViewCore>(component),
component => Assert.IsType<LayoutView>(component),
component => Assert.IsType<TestPageWithNoAuthorization>(component));
}
Expand Down Expand Up @@ -250,7 +250,7 @@ public void WithCascadedAuthenticationState_DoesNotWrapOutputInCascadingAuthenti

// This is the hierarchy inside the AuthorizeRouteView. It doesn't contain a
// further CascadingAuthenticationState
component => Assert.True(component is AuthorizeViewCore),
component => Assert.IsAssignableFrom<AuthorizeViewCore>(component),
component => Assert.IsType<LayoutView>(component),
component => Assert.IsType<TestPageWithNoAuthorization>(component));
}
Expand Down

0 comments on commit 2591f0f

Please sign in to comment.