Skip to content

Commit

Permalink
Merge pull request #11 from irihitech/share-test
Browse files Browse the repository at this point in the history
Use shared project for UT project.
  • Loading branch information
rabbitism authored Apr 5, 2024
2 parents d0035be + e31f0d3 commit 60c4563
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 5 deletions.
8 changes: 6 additions & 2 deletions src/Irihi.Avalonia.Shared.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Irihi.Avalonia.Shared.UnitT
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Irihi.Avalonia.Shared.Public", "Irihi.Avalonia.Shared.Public\Irihi.Avalonia.Shared.Public.shproj", "{F7A8869A-C381-4445-BC80-F87739D6A496}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Irihi.Avalonia.Shared.UnitTest.Public", "..\test\Irihi.Avalonia.Shared.UnitTest.Public\Irihi.Avalonia.Shared.UnitTest.Public.shproj", "{222449F9-96D5-409E-9627-AA1DE6219B26}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -34,7 +36,9 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
Irihi.Avalonia.Shared.ShareProject\Irihi.Avalonia.Shared.ShareProject.projitems*{2c350a8c-4253-45ce-b565-6f4275fc11cd}*SharedItemsImports = 5
Irihi.Avalonia.Shared.ShareProject\Irihi.Avalonia.Shared.ShareProject.projitems*{f7a8869a-c381-4445-bc80-f87739d6a496}*SharedItemsImports = 13
..\test\Irihi.Avalonia.Shared.UnitTest.Public\Irihi.Avalonia.Shared.UnitTest.Public.projitems*{222449f9-96d5-409e-9627-aa1de6219b26}*SharedItemsImports = 13
Irihi.Avalonia.Shared.Public\Irihi.Avalonia.Shared.Public.projitems*{2c350a8c-4253-45ce-b565-6f4275fc11cd}*SharedItemsImports = 5
..\test\Irihi.Avalonia.Shared.UnitTest.Public\Irihi.Avalonia.Shared.UnitTest.Public.projitems*{5ad4a73b-4b85-4c56-bab3-a25d526f0b07}*SharedItemsImports = 5
Irihi.Avalonia.Shared.Public\Irihi.Avalonia.Shared.Public.projitems*{f7a8869a-c381-4445-bc80-f87739d6a496}*SharedItemsImports = 13
EndGlobalSection
EndGlobal
1 change: 1 addition & 0 deletions test/Irihi.Avalonia.Shared.UnitTest.Public/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global using Xunit;
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<HasSharedItems>true</HasSharedItems>
<SharedGUID>DA1E3BE1-D211-4BAF-8581-34DC94D57F02</SharedGUID>
</PropertyGroup>
<PropertyGroup Label="Configuration">
<Import_RootNamespace>Irihi.Avalonia.Shared.UnitTest.Public</Import_RootNamespace>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)GlobalUsings.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Helpers\AvaloniaPropertyExtensionTest.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Helpers\BindingExtensionTest.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Helpers\ObservableExtensionTest.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Helpers\PropertyPseudoClassHelperTest.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Helpers\RoutedEventExtensionTest.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Shapes\PureCircleTest.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Shapes\PureRingTest.cs" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>{222449F9-96D5-409E-9627-AA1DE6219B26}</ProjectGuid>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props"
Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"/>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props"/>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props"/>
<Import Project="Irihi.Avalonia.Shared.UnitTest.Public.projitems" Label="Shared"/>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets"/>
</Project>
1 change: 0 additions & 1 deletion test/Irihi.Avalonia.Shared.UnitTest/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
global using Xunit;
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0"/>
<PackageReference Include="xunit" Version="2.4.2"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand All @@ -25,4 +25,6 @@
<ProjectReference Include="..\..\src\Irihi.Avalonia.Shared\Irihi.Avalonia.Shared.csproj" />
</ItemGroup>

<Import Project="..\Irihi.Avalonia.Shared.UnitTest.Public\Irihi.Avalonia.Shared.UnitTest.Public.projitems" Label="Shared" />

</Project>

0 comments on commit 60c4563

Please sign in to comment.