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 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
#if NET452
8
+ using React . Web . Mvc ;
9
+ #else
10
+ using React . AspNet ;
11
+ #endif
8
12
9
13
using System ;
10
14
using System . IO ;
11
15
using System . Security . Cryptography ;
12
16
using Moq ;
13
- using React . Web . Mvc ;
14
17
using Xunit ;
15
18
16
19
namespace React . Tests . Mvc
@@ -269,4 +272,3 @@ public void RenderFunctionsCalledNonLazily()
269
272
}
270
273
}
271
274
}
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