@@ -33,7 +33,7 @@ private Mock<IReactEnvironment> ConfigureMockEnvironment()
3333 public void ReactWithInitShouldReturnHtmlAndScript ( )
3434 {
3535 var component = new Mock < IReactComponent > ( ) ;
36- component . Setup ( x => x . RenderHtml ( false ) ) . Returns ( "HTML" ) ;
36+ component . Setup ( x => x . RenderHtml ( false , true ) ) . Returns ( "HTML" ) ;
3737 component . Setup ( x => x . RenderJavaScript ( ) ) . Returns ( "JS" ) ;
3838 var environment = ConfigureMockEnvironment ( ) ;
3939 environment . Setup ( x => x . CreateComponent (
@@ -59,7 +59,7 @@ public void ReactWithInitShouldReturnHtmlAndScript()
5959 public void ReactWithClientOnlyTrueShouldCallRenderHtmlWithTrue ( )
6060 {
6161 var component = new Mock < IReactComponent > ( ) ;
62- component . Setup ( x => x . RenderHtml ( true ) ) . Returns ( "HTML" ) ;
62+ component . Setup ( x => x . RenderHtml ( true , false ) ) . Returns ( "HTML" ) ;
6363 var environment = ConfigureMockEnvironment ( ) ;
6464 environment . Setup ( x => x . CreateComponent (
6565 "ComponentName" ,
@@ -72,9 +72,10 @@ public void ReactWithClientOnlyTrueShouldCallRenderHtmlWithTrue()
7272 componentName : "ComponentName" ,
7373 props : new { } ,
7474 htmlTag : "span" ,
75- clientOnly : true
75+ clientOnly : true ,
76+ renderReactAttributes : false
7677 ) ;
77- component . Verify ( x => x . RenderHtml ( It . Is < bool > ( y => y == true ) ) , Times . Once ) ;
78+ component . Verify ( x => x . RenderHtml ( It . Is < bool > ( y => y == true ) , It . Is < bool > ( z => z == false ) ) , Times . Once ) ;
7879 }
7980 }
8081}
0 commit comments