Skip to content

Commit ff89d24

Browse files
authored
feat(deps): update project dependencies #11474 (#11475)
1 parent 379cf3d commit ff89d24

File tree

13 files changed

+32
-30
lines changed

13 files changed

+32
-30
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"ms-dotnettools.csharp",
3232
"ms-dotnettools.csdevkit",
3333
"ms-azuretools.vscode-docker",
34-
"DominicVonk.vscode-resx-editor",
3534
"ms-vscode-remote.remote-containers",
3635
"ms-dotnettools.blazorwasm-companion",
3736
"ms-dotnettools.vscode-dotnet-runtime"

.github/workflows/bit.ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: dotnet build src/Bit-CI-release.slnx
5353

5454
- name: Test
55-
run: dotnet test --no-build --verbosity normal src/BlazorUI/Bit.BlazorUI.Tests/Bit.BlazorUI.Tests.csproj
55+
run: dotnet test --no-build --verbosity normal --project src/BlazorUI/Bit.BlazorUI.Tests/Bit.BlazorUI.Tests.csproj
5656

5757
build:
5858
if: startsWith(github.event.pull_request.title, 'Prerelease') != true && startsWith(github.event.pull_request.title, 'Release') != true && startsWith(github.event.pull_request.title, 'Version') != true
@@ -99,4 +99,4 @@ jobs:
9999
run: dotnet build src/Bit-CI.slnx -p:WarningLevel=0 -p:RunCodeAnalysis=false
100100

101101
- name: Test
102-
run: dotnet test --no-build --verbosity normal src/BlazorUI/Bit.BlazorUI.Tests/Bit.BlazorUI.Tests.csproj
102+
run: dotnet test --no-build --verbosity normal --project src/BlazorUI/Bit.BlazorUI.Tests/Bit.BlazorUI.Tests.csproj

.github/workflows/bit.full.ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
env:
7-
ConnectionStrings__SqlServerConnectionString: 'Data Source=localhost; Initial Catalog=BoilerplateTestDb;Application Name=Boilerplate;TrustServerCertificate=True;User Id=sa;Password=P@ssw0rdP@ssw0rd;'
7+
ConnectionStrings__sqldb: 'Data Source=localhost; Initial Catalog=BoilerplateTestDb;Application Name=Boilerplate;TrustServerCertificate=True;User Id=sa;Password=P@ssw0rdP@ssw0rd;'
88
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true
99

1010
jobs:
@@ -63,7 +63,7 @@ jobs:
6363
cd ../../Tests
6464
dotnet build
6565
pwsh bin/Debug/net10.0/playwright.ps1 install --with-deps
66-
dotnet test --logger GitHubActions --filter "${{ env.SIMPLE_TEST_FILTER }}"
66+
dotnet test
6767
6868
- name: Upload Tests Artifact
6969
uses: actions/upload-artifact@v4.4.1
@@ -92,7 +92,7 @@ jobs:
9292
cd ../../Tests
9393
dotnet build
9494
pwsh bin/Debug/net10.0/playwright.ps1 install --with-deps
95-
dotnet test --logger GitHubActions --filter "${{ env.SIMPLE_TEST_FILTER }}"
95+
dotnet test
9696
9797
- name: Upload Tests Artifact
9898
uses: actions/upload-artifact@v4.4.1
@@ -102,6 +102,11 @@ jobs:
102102
path: ./TestSqlServer/src/Tests/TestResults
103103
retention-days: 14
104104

105+
- name: Cleanup test projects to free disk space
106+
run: |
107+
rm -rf SimpleTest
108+
rm -rf TestSqlServer
109+
105110
- name: Build PostgreSQL and Other database options
106111
run: |
107112
dotnet new bit-bp --name TestPostgreSQL --database PostgreSQL --module Sales --signalR

dotnet.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[dotnet.test.runner]
2+
name = "Microsoft.Testing.Platform"

src/BlazorUI/Bit.BlazorUI.Tests/Bit.BlazorUI.Tests.csproj

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Razor">
1+
<Project Sdk="MSTest.Sdk/4.0.0">
22

3+
<Sdk Name="Microsoft.NET.Sdk.Razor" />
4+
35
<PropertyGroup>
46
<TargetFrameworks>net10.0;net9.0;net8.0</TargetFrameworks>
57
<IsPackable>false</IsPackable>
68
<LangVersion>14.0</LangVersion>
79
<Nullable>enable</Nullable>
10+
<RollForward>Major</RollForward>
811
</PropertyGroup>
912

1013
<ItemGroup>
@@ -15,13 +18,6 @@
1518

1619
<ItemGroup>
1720
<PackageReference Include="bunit.web" Version="1.40.0" />
18-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
19-
<PackageReference Include="MSTest.TestAdapter" Version="3.11.0" />
20-
<PackageReference Include="MSTest.TestFramework" Version="3.11.0" />
21-
<PackageReference Include="coverlet.collector" Version="6.0.4">
22-
<PrivateAssets>all</PrivateAssets>
23-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
24-
</PackageReference>
2521
</ItemGroup>
2622

2723
<ItemGroup>

src/BlazorUI/Bit.BlazorUI.Tests/Components/Inputs/ColorPicker/BitColorPickerTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public void BitColorPickerMustRespectUiChange(bool show)
3636
}
3737
else
3838
{
39-
Assert.ThrowsException<ElementNotFoundException>(() => com.Find(".bit-clp-asd"));
40-
Assert.ThrowsException<ElementNotFoundException>(() => com.Find(".bit-clp-pre"));
39+
Assert.Throws<ElementNotFoundException>(() => com.Find(".bit-clp-asd"));
40+
Assert.Throws<ElementNotFoundException>(() => com.Find(".bit-clp-pre"));
4141
}
4242
}
4343

src/BlazorUI/Bit.BlazorUI.Tests/Components/Inputs/Dropdown/BitDropdownTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void ResponsiveDropdownShouldTakeCorrectClassNameAndRenderElements(bool i
6464
//}
6565
//else
6666
//{
67-
// Assert.ThrowsException<ElementNotFoundException>(() => component.Find(".bit-drp-rlc"));
67+
// Assert.Throws<ElementNotFoundException>(() => component.Find(".bit-drp-rlc"));
6868
//}
6969
}
7070

@@ -84,7 +84,7 @@ public void ResponsiveDropdownShouldRenderLabel(string labelFragment)
8484

8585
if (string.IsNullOrEmpty(labelFragment))
8686
{
87-
Assert.ThrowsException<ElementNotFoundException>(() => component.Find(".bit-drp-rlc > label"));
87+
Assert.Throws<ElementNotFoundException>(() => component.Find(".bit-drp-rlc > label"));
8888
}
8989
else
9090
{
@@ -112,7 +112,7 @@ public void ResponsiveDropdownShouldRenderLabelFragment(string labelFragment)
112112

113113
if (string.IsNullOrEmpty(labelFragment))
114114
{
115-
Assert.ThrowsException<ElementNotFoundException>(() => component.Find(".bit-drp-rlc > label"));
115+
Assert.Throws<ElementNotFoundException>(() => component.Find(".bit-drp-rlc > label"));
116116
}
117117
else
118118
{
@@ -166,7 +166,7 @@ public void BitDropdownIsMultiSelectShouldWorkCorrect(bool isMultiSelect)
166166
}
167167
else
168168
{
169-
Assert.ThrowsException<ElementNotFoundException>(() => component.Find(".bit-drp-iwr"));
169+
Assert.Throws<ElementNotFoundException>(() => component.Find(".bit-drp-iwr"));
170170
}
171171
}
172172

@@ -389,7 +389,7 @@ public void BitDropdownLabelShouldWorkCorrect(string label)
389389
}
390390
else
391391
{
392-
Assert.ThrowsException<ElementNotFoundException>(() => component.Find("label"));
392+
Assert.Throws<ElementNotFoundException>(() => component.Find("label"));
393393
}
394394
}
395395

src/BlazorUI/Bit.BlazorUI.Tests/Components/Inputs/NumberField/BitNumberFieldTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void BitNumberFieldShouldHaveCorrectLabel(string label)
4646

4747
if (string.IsNullOrEmpty(label))
4848
{
49-
Assert.ThrowsException<ElementNotFoundException>(() => component.Find("label"));
49+
Assert.Throws<ElementNotFoundException>(() => component.Find("label"));
5050
}
5151
else
5252
{

src/BlazorUI/Bit.BlazorUI.Tests/Components/Navs/Nav/BitNavTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void BitNavShouldRespectGroupItems(BitNavRenderType type)
106106
}
107107
else
108108
{
109-
Assert.ThrowsException<ElementNotFoundException>(() => component.Find(".bit-nav-gcb"));
109+
Assert.Throws<ElementNotFoundException>(() => component.Find(".bit-nav-gcb"));
110110
}
111111
}
112112

@@ -180,7 +180,7 @@ public void BitNavLinkItemForceAnchorTest(bool isForced)
180180
}
181181
else
182182
{
183-
Assert.ThrowsException<ElementNotFoundException>(() => componenet.Find("a"));
183+
Assert.Throws<ElementNotFoundException>(() => componenet.Find("a"));
184184
}
185185
}
186186

src/BlazorUI/Bit.BlazorUI.Tests/Components/Progress/ProgressBar/BitProgressTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void BitProgressLabelTest(string label)
104104
var piBar = component.Find(".bit-prb-bar");
105105
if (string.IsNullOrEmpty(label))
106106
{
107-
Assert.ThrowsException<ElementNotFoundException>(() => component.Find(".bit-prb-lbl"));
107+
Assert.Throws<ElementNotFoundException>(() => component.Find(".bit-prb-lbl"));
108108
Assert.IsNull(piBar.GetAttribute("aria-labelledby"));
109109
}
110110
else
@@ -129,7 +129,7 @@ public void BitProgressDescriptionTest(string description)
129129
var piBar = component.Find(".bit-prb-bar");
130130
if (string.IsNullOrEmpty(description))
131131
{
132-
Assert.ThrowsException<ElementNotFoundException>(() => component.Find(".bit-prb-des"));
132+
Assert.Throws<ElementNotFoundException>(() => component.Find(".bit-prb-des"));
133133
Assert.IsNull(piBar.GetAttribute("aria-describedby"));
134134
}
135135
else
@@ -180,7 +180,7 @@ public void BitProgressShowPercentNumberTest(bool showPercentNumber)
180180
}
181181
else
182182
{
183-
Assert.ThrowsException<ElementNotFoundException>(() => component.Find(".bit-prb-pct"));
183+
Assert.Throws<ElementNotFoundException>(() => component.Find(".bit-prb-pct"));
184184
}
185185
}
186186

0 commit comments

Comments
 (0)