mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-11-29 18:49:08 +08:00
!2359 test(#I4SACC): remove net 5 framework from unit test project
* test: 更新测试脚本 * test: 更新单元测试文件 * test: 增加单元测试工程配置文件 * test: 移除不使用的属性 * chore: 移除 Nullable 配置
This commit is contained in:
parent
d19237f0ed
commit
4df42641cd
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
dotnet test test/UnitTest -c Release -f net6.0 --collect:"XPlat Code Coverage" -r ./coverage
|
||||
dotnet test test/UnitTest -c Release --collect:"XPlat Code Coverage" -r ./coverage
|
||||
#dotnet test test/UnitTest.Localization -c Release -f net6.0 --collect:"XPlat Code Coverage" -r ./coverage
|
||||
|
||||
- name: Upload to Codecov
|
||||
|
@ -8,6 +8,9 @@ EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{A2182155-43ED-44C1-BF6F-1B70EBD2DFFE}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{7C1D79F1-87BC-42C1-BD5A-CDE4044AC1BD}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
test\Directory.Build.props = test\Directory.Build.props
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{A627F6CC-94FC-4E48-B3CC-F0EA16700527}"
|
||||
EndProject
|
||||
|
23
test/Directory.Build.props
Normal file
23
test/Directory.Build.props
Normal file
@ -0,0 +1,23 @@
|
||||
<Project>
|
||||
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<LangVersion>latest</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Using Include="BootstrapBlazor.Components"/>
|
||||
<Using Include="Bunit"/>
|
||||
<Using Include="Microsoft.AspNetCore.Components"/>
|
||||
<Using Include="System.Diagnostics.CodeAnalysis"/>
|
||||
<Using Include="UnitTest.Core"/>
|
||||
<Using Include="Xunit"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -2,10 +2,7 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using Bunit;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Localization;
|
||||
|
||||
|
@ -2,10 +2,7 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using Bunit;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Localization;
|
||||
|
||||
|
@ -2,9 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
[assembly: CollectionBehavior(DisableTestParallelization = true)]
|
||||
[assembly: TestCollectionOrderer("UnitTest.CollectionOrder.DisplayNameOrderer", "UnitTest")]
|
||||
|
@ -2,14 +2,11 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using BootstrapBlazor.Shared;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Globalization;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Localization;
|
||||
|
||||
|
@ -2,14 +2,11 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using BootstrapBlazor.Shared;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Globalization;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Localization;
|
||||
|
||||
|
@ -1,10 +1,5 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\src\BootstrapBlazor.Shared\Data\Foo.cs" Link="Mics\Foo.cs" />
|
||||
<Compile Include="..\UnitTest\Core\BootstrapBlazorTestBase.cs" Link="Mics\BootstrapBlazorTestBase.cs" />
|
||||
|
@ -2,13 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class AlertTest : TestBase
|
||||
|
@ -2,10 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class AnchorLinkTest : BootstrapBlazorTestBase
|
||||
|
@ -2,11 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class AnchorTest : TestBase
|
||||
|
@ -2,15 +2,7 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Numerics;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
|
@ -2,10 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class AutoRedirectTest : TestBase
|
||||
|
@ -2,13 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class AvatarTest : TestBase
|
||||
|
@ -2,11 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class BadgeTest : TestBase
|
||||
|
@ -2,15 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class BlockTest : TestBase
|
||||
|
@ -2,17 +2,11 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using BootstrapBlazor.Shared;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using UnitTest.Extensions;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
|
@ -2,11 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class CardTest : TestBase
|
||||
|
@ -2,11 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class ColorPickerTest : BootstrapBlazorTestBase
|
||||
|
@ -2,15 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class DateTimeRangeTest : BootstrapBlazorTestBase
|
||||
|
@ -2,17 +2,8 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using BootstrapBlazor.Shared;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using UnitTest.Extensions;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
|
@ -2,18 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class DrawerTest : BootstrapBlazorTestBase
|
||||
|
@ -2,16 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class EmptyTest : BootstrapBlazorTestBase
|
||||
|
@ -2,13 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class ErrorLoggerTest : BootstrapBlazorTestBase
|
||||
|
@ -2,11 +2,7 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using System.Web;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
|
@ -2,14 +2,8 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using BootstrapBlazor.Shared;
|
||||
using Bunit;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using UnitTest.Extensions;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
|
@ -2,10 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class LightTest : TestBase
|
||||
|
@ -2,12 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class LinkButtonTest : BootstrapBlazorTestBase
|
||||
|
@ -2,17 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
using Bunit;
|
||||
using UnitTest.Core;
|
||||
using BootstrapBlazor.Components;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class LogoutTest : BootstrapBlazorTestBase
|
||||
|
@ -2,18 +2,10 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Bunit.TestDoubles;
|
||||
using Microsoft.AspNetCore.Components.Routing;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
|
@ -2,15 +2,8 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using BootstrapBlazor.Shared;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
|
@ -2,11 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class ModalTest : BootstrapBlazorTestBase
|
||||
|
@ -2,17 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class NullSwitchTest : BootstrapBlazorTestBase
|
||||
|
@ -2,17 +2,8 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
|
@ -2,13 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class QRCodeTest : BootstrapBlazorTestBase
|
||||
|
@ -2,10 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class SpinnerTest : TestBase
|
||||
|
@ -2,13 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class SwitchTest : BootstrapBlazorTestBase
|
||||
|
@ -2,13 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class TagTest : BootstrapBlazorTestBase
|
||||
|
@ -2,13 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class TitleTest : BootstrapBlazorTestBase
|
||||
|
@ -2,12 +2,8 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Options;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
|
@ -2,17 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
public class ToggleTest : BootstrapBlazorTestBase
|
||||
|
@ -2,17 +2,10 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using BootstrapBlazor.Shared;
|
||||
using Bunit;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.Components.Forms;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Threading.Tasks;
|
||||
using UnitTest.Core;
|
||||
using UnitTest.Extensions;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Components;
|
||||
|
||||
|
@ -2,11 +2,7 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using Bunit;
|
||||
using Bunit.TestDoubles;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Core;
|
||||
|
||||
|
@ -2,13 +2,8 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Bunit;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Core;
|
||||
|
||||
|
@ -2,11 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using Bunit;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Core;
|
||||
|
||||
[Collection("TestContext")]
|
||||
|
@ -2,10 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Emit;
|
||||
|
||||
public class TypeTest
|
||||
|
@ -2,9 +2,7 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using BootstrapBlazor.Shared;
|
||||
using System;
|
||||
|
||||
namespace UnitTest.Extensions;
|
||||
|
||||
|
@ -3,9 +3,6 @@
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
|
@ -2,11 +2,8 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using BootstrapBlazor.Shared;
|
||||
using System.Globalization;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Localization;
|
||||
|
||||
|
@ -2,17 +2,11 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using BootstrapBlazor.Shared;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Localization;
|
||||
|
||||
|
@ -2,9 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using System;
|
||||
|
||||
namespace UnitTest;
|
||||
|
||||
internal static class DynamicObjectHelper
|
||||
|
@ -2,14 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UnitTest;
|
||||
|
||||
internal class MockTableColumn : ITableColumn
|
||||
|
@ -5,13 +5,8 @@
|
||||
using BootstrapBlazor.Shared;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace UnitTest.Performance;
|
||||
|
@ -2,10 +2,7 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace UnitTest.Performance;
|
||||
|
@ -2,12 +2,8 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace UnitTest.Performance;
|
||||
|
@ -2,8 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using System;
|
||||
|
||||
namespace UnitTest.Services;
|
||||
|
||||
/// <summary>
|
||||
|
@ -1,10 +1,5 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="bunit" Version="1.3.42" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
|
||||
|
@ -2,11 +2,7 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Utils;
|
||||
|
||||
|
@ -2,10 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using System.Collections.Generic;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Utils;
|
||||
|
||||
public class CssBuilderTest
|
||||
|
@ -2,11 +2,7 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Utils;
|
||||
|
||||
|
@ -2,10 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using System;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Utils;
|
||||
|
||||
public class QueryHelperTest
|
||||
|
@ -2,9 +2,7 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Utils;
|
||||
|
||||
@ -56,7 +54,5 @@ public class ReflectionTest
|
||||
private class Cat : Dummy
|
||||
{
|
||||
public new int Foo { get; set; }
|
||||
|
||||
private string Test { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -2,10 +2,6 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Utils;
|
||||
|
||||
/// <summary>
|
||||
|
@ -2,15 +2,7 @@
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
// Website: https://www.blazor.zone or https://argozhang.github.io/
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
using BootstrapBlazor.Shared;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Localization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnitTest.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace UnitTest.Utils;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user