Skip to content

Commit 1bdbc70

Browse files
committed
Fix tests
1 parent 32724d0 commit 1bdbc70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Components/Components/test/RouteViewTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void RendersPageInsideLayoutView()
8080
frame => AssertFrame.Region(frame, subtreeLength: 5),
8181
frame => AssertFrame.Component<CascadingModelBinder>(frame, sequence: 0, subtreeLength: 4),
8282
frame => AssertFrame.Attribute(frame, nameof(CascadingModelBinder.Name), "", sequence: 1),
83-
frame => AssertFrame.Attribute(frame, nameof(CascadingModelBinder.BindingContextId), "jan", sequence: 2),
83+
frame => AssertFrame.Attribute(frame, nameof(CascadingModelBinder.BindingContextId), "/", sequence: 2),
8484
frame => AssertFrame.Attribute(frame, nameof(CascadingModelBinder.ChildContent), typeof(RenderFragment<ModelBindingContext>), sequence: 3),
8585
frame => AssertFrame.Text(frame, "Layout ends here", sequence: 2));
8686

@@ -89,7 +89,7 @@ public void RendersPageInsideLayoutView()
8989
var cascadingModelBinderFrames = _renderer.GetCurrentRenderTreeFrames(cascadingModelBinderComponentId).AsEnumerable();
9090
Assert.Collection(cascadingModelBinderFrames,
9191
frame => AssertFrame.Component<CascadingValue<ModelBindingContext>>(frame, sequence: 0, subtreeLength: 4),
92-
frame => AssertFrame.Attribute(frame, nameof(CascadingValue<ModelBindingContext>.IsFixed), true, sequence: 1),
92+
frame => AssertFrame.Attribute(frame, nameof(CascadingValue<ModelBindingContext>.IsFixed), false, sequence: 1),
9393
frame => AssertFrame.Attribute(frame, nameof(CascadingValue<ModelBindingContext>.Value), typeof(ModelBindingContext), sequence: 2),
9494
frame => AssertFrame.Attribute(frame, nameof(CascadingValue<ModelBindingContext>.ChildContent), typeof(RenderFragment), sequence: 3));
9595

@@ -167,7 +167,7 @@ public void ProvidesDocumentPathAsBindingContextId(string url, string expectedBi
167167
var cascadingModelBinderFrames = _renderer.GetCurrentRenderTreeFrames(cascadingModelBinderComponentId).AsEnumerable();
168168
Assert.Collection(cascadingModelBinderFrames,
169169
frame => AssertFrame.Component<CascadingValue<ModelBindingContext>>(frame, sequence: 0, subtreeLength: 4),
170-
frame => AssertFrame.Attribute(frame, nameof(CascadingValue<ModelBindingContext>.IsFixed), true, sequence: 1),
170+
frame => AssertFrame.Attribute(frame, nameof(CascadingValue<ModelBindingContext>.IsFixed), false, sequence: 1),
171171
frame => AssertFrame.Attribute(frame, nameof(CascadingValue<ModelBindingContext>.Value), typeof(ModelBindingContext), sequence: 2),
172172
frame => AssertFrame.Attribute(frame, nameof(CascadingValue<ModelBindingContext>.ChildContent), typeof(RenderFragment), sequence: 3));
173173

0 commit comments

Comments
 (0)