* fix: PathPicker's File Filtering Function malfunctions Regular expression validation for adding parameters; the sample reference content is as follows: [Name,Pattern] → True [123,.exe,.pdb] → True [All] → True [ImageAll] → True [11,*.txt] → True *.123 → False *.txt → False .png → False [*.txt] → False [.txt] → False [a] → True [a,b] → True [a,b,c] → True [a,*] → True [a,.] → True [*] → False [.] → False [a,] → False [,a] → False [] → False [a,b,] → False [a,,b] → False [a*b] → False [a.b] → False * Add PathPicker regex validation and headless tests Introduces regex-based validation for the PathPicker FileFilter property, supporting both NETSTANDARD2_0 and NET8_0 with conditional compilation. Adds headless UI tests and supporting test views to verify correct and incorrect filter patterns. * Refactor PathPicker tests and update accessibility Moved PathPicker unit tests from HeadlessTest.Ursa to Test.Ursa, removing UI-dependent test files and replacing them with direct unit tests for ParseFileTypes. Updated PathPicker.cs to make ParseFileTypes internal for improved testability and adjusted regex method accessibility. Updated project file to remove references to deleted test files. * Update HeadlessTest.Ursa.csproj * Update src/Ursa/Controls/PathPicker/PathPicker.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
32 lines
1.2 KiB
XML
32 lines
1.2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<LangVersion>latest</LangVersion>
|
|
<Nullable>enable</Nullable>
|
|
<IsPackable>false</IsPackable>
|
|
<IsTestProject>true</IsTestProject>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Avalonia.Headless.XUnit" Version="11.2.3" />
|
|
<PackageReference Include="Avalonia.Skia" Version="11.2.3" />
|
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.0" />
|
|
<PackageReference Include="coverlet.collector" Version="6.0.4"/>
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
|
|
<PackageReference Include="Semi.Avalonia" Version="11.2.1.3" />
|
|
<PackageReference Include="xunit" Version="2.5.3"/>
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Using Include="Xunit"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\Ursa\Ursa.csproj" />
|
|
<ProjectReference Include="..\..\src\Ursa.Themes.Semi\Ursa.Themes.Semi.csproj" />
|
|
</ItemGroup>
|
|
</Project>
|