@@ -267,7 +267,7 @@ Some times you need to pass multiple different types of content to a `RenderFrag
267267
268268# [C # test code ](#tab /csharp )
269269
270- [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L208 -L227 )]
270+ [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L208 -L228 )]
271271
272272Passing a mix of markup and components to a `RenderFragment ` parameter is simply done by calling the <xref :Bunit .ComponentParameterCollectionBuilder `1>'s `Add ()` methods or using the `ChildContent ()` factory methods in <xref :Bunit .ComponentParameterFactory >, as seen here .
273273
@@ -304,7 +304,7 @@ The delegate creates a simple markup string in both examples.
304304
305305# [Razor test code ](#tab /razor )
306306
307- [!code -cshtml [](../../../samples /tests /razor /AllKindsOfParamsTest .razor #L98 -L109 )]
307+ [!code -cshtml [](../../../samples /tests /razor /AllKindsOfParamsTest .razor #L98 -L106 )]
308308
309309This is just regular Blazor `RenderFragment <TValue >` parameter passing , in this case , to the `Template ` parameter . This is the same for both `Fixture ` and `SnapshotTest ` razor tests .
310310
@@ -318,13 +318,13 @@ To pass a template into a `RenderFragment<TValue>` parameter, which is based on
318318
319319# [C # test code ](#tab /csharp )
320320
321- [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L253 - L269 )]
321+ [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L252 - L268 )]
322322
323323These examples do the same thing , i .e . create a template with the `<Item >` component listed above .
324324
325325# [Razor test code ](#tab /razor )
326326
327- [!code -cshtml [](../../../samples /tests /razor /AllKindsOfParamsTest .razor #L108 -L118 )]
327+ [!code -cshtml [](../../../samples /tests /razor /AllKindsOfParamsTest .razor #L108 -L116 )]
328328
329329This is just regular Blazor `RenderFragment <TValue >` parameter passing , in this case , to the `Template ` parameter . This is the same for both `Fixture ` and `SnapshotTest ` razor tests .
330330
@@ -340,13 +340,13 @@ In the follow examples, we will pass an unmatched parameter to the following com
340340
341341# [C # test code ](#tab /csharp )
342342
343- [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L275 - L285 )]
343+ [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L274 - L284 )]
344344
345345These examples do the same thing , i .e . pass in the parameter `some -unknown -param ` with the value `a value ` to the component under test .
346346
347347# [Razor test code ](#tab /razor )
348348
349- [!code -cshtml [](../../../samples /tests /razor /AllKindsOfParamsTest .razor #L120 - L124 )]
349+ [!code -cshtml [](../../../samples /tests /razor /AllKindsOfParamsTest .razor #L119 - L123 )]
350350
351351This is just regular Blazor parameter passing , which is the same for both `Fixture ` and `SnapshotTest ` razor tests . In this case , the parameter `some -unknown -param ` with the value `a value ` is passed to the component under test .
352352
@@ -366,7 +366,7 @@ To pass the unnamed `IsDarkTheme` cascading parameter to the `<CascadingParams>`
366366
367367# [C # test code ](#tab /csharp )
368368
369- [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L291 - L307 )]
369+ [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L290 - L306 )]
370370
371371These examples do the same thing , i .e . passing the variable `isDarkTheme ` to the cascading parameter `IsDarkTheme `.
372372
@@ -388,7 +388,7 @@ To pass a named cascading parameter to the `<CascadingParams>` component, do the
388388
389389# [C # test code ](#tab /csharp )
390390
391- [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L313 - L323 )]
391+ [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L312 - L322 )]
392392
393393These examples do the same thing , i .e . pass in value `Egil Hansen ` to the cascading parameter with the name `LoggedInUser `. Note that the name of the parameter is not the same as the property of the parameter , e .g . `LoggedInUser ` vs . `UserName `.
394394
@@ -409,7 +409,7 @@ To pass all cascading parameters to the `<CascadingParams>` component, do the fo
409409
410410# [C # test code ](#tab /csharp )
411411
412- [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L329 - L351 )]
412+ [!code -csharp [](../../../samples /tests /xunit /AllKindsOfParamsTest .cs #L328 - L350 )]
413413
414414These examples do the same thing , i .e . passing both the unnamed `IsDarkTheme ` cascading parameter and the two named cascading parameters (`LoggedInUser `, `LoggedInEmail `).
415415
0 commit comments