File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 55 * LICENSE file in the root directory of this source tree.
66 */
77#if NET452
8+ using React . Web . Mvc ;
9+ #else
10+ using React . AspNet ;
11+ #endif
812
913using System ;
1014using System . IO ;
1115using System . Security . Cryptography ;
1216using Moq ;
13- using React . Web . Mvc ;
1417using Xunit ;
1518
1619namespace React . Tests . Mvc
@@ -269,4 +272,3 @@ public void RenderFunctionsCalledNonLazily()
269272 }
270273 }
271274}
272- #endif
Original file line number Diff line number Diff line change 1+ #if ! NET452
2+ using System . IO ;
3+ using System . Text . Encodings . Web ;
4+ using Microsoft . AspNetCore . Html ;
5+
6+ namespace React . Tests . Mvc
7+ {
8+ public static class TestUtilities
9+ {
10+ public static string ToHtmlString ( this IHtmlContent source )
11+ {
12+ using ( var writer = new StringWriter ( ) )
13+ {
14+ source . WriteTo ( writer , HtmlEncoder . Default ) ;
15+ return writer . ToString ( ) ;
16+ }
17+ }
18+ }
19+ }
20+
21+ #endif
You can’t perform that action at this time.
0 commit comments