diff --git a/ReactWithDotNet.WebSite.Test/GlobalUsings.cs b/ReactWithDotNet.WebSite.Test/GlobalUsings.cs deleted file mode 100644 index 783294d5..00000000 --- a/ReactWithDotNet.WebSite.Test/GlobalUsings.cs +++ /dev/null @@ -1,10 +0,0 @@ -global using System; -global using System.Linq.Expressions; -global using ReactWithDotNet; -global using System.Collections.Generic; -global using System.Linq; -global using static ReactWithDotNet.Mixin; -global using static ReactWithDotNet.WebSite.Extensions; -global using ReactWithDotNet.WebSite.Components; -global using Microsoft.VisualStudio.TestTools.UnitTesting; - diff --git a/ReactWithDotNet.WebSite.Test/HtmlToCSharpTests.cs b/ReactWithDotNet.WebSite.Test/HtmlToCSharpTests.cs deleted file mode 100644 index a126cf3e..00000000 --- a/ReactWithDotNet.WebSite.Test/HtmlToCSharpTests.cs +++ /dev/null @@ -1,188 +0,0 @@ -using FluentAssertions; -using static ReactWithDotNet.WebSite.HelperApps.HtmlToReactWithDotNetCsharpCodeConverter; - -namespace ReactWithDotNet.WebSite.Test; - -[TestClass] -public class HtmlToCSharpTests -{ - [TestMethod] - public void _0() - { - Assert(""" -
- """, - """ - new div() - """); - - Assert(""" - xYz1 - """, - """ - new span("a-b c", Color(rgb(28, 32, 37)), BorderRadius(12)) - { - "xYz1" - } - """); - - - Assert(""" - xYz1 - """, - """ - new span("a-b c") - { - "xYz1" - } - """); - - - Assert(""" - xYz1 - """, - """ - new span - { - "xYz1" - } - """); - - - - - Assert(""" - - """, - """ - new a(TargetBlank) - """); - - - Assert(""" - - """, - """ - new a(TargetBlank, Color(rgb(28, 32, 37)), BorderRadius(12)) - """); - - - Assert(""" - - """, - """ - new a(TargetBlank, Aria("hidden", "true"), Data("testid", "AcUnitIcon"), Color(rgb(28, 32, 37)), BorderRadius(12)) - """); - - - Assert(""" - - xyz - - """, - """ - new a(TargetBlank, Aria("hidden", "true"), Data("testid", "AcUnitIcon"), Color(rgb(28, 32, 37)), BorderRadius(12)) - { - "xyz" - } - """); - - - Assert(""" - - """, - """ - new FlexRow(Aria("hidden", "true"), Data("testid", "AcUnitIcon"), Color("blue")) - """); - return; - - static void Assert(string html, string expected) - { - var actual = HtmlToCSharp(html); - - actual.Should().Be(expected); - } - } - - [TestMethod] - public void _1() - { - Assert(""" -