mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
Migrate to MTP (#37651)
Duplicating https://github.com/microsoft/PowerToys/pull/37001, but opening from upstream instead of fork as CI doesn't play nicely with PRs from forks (https://github.com/microsoft/PowerToys/pull/37617 is improving that) --------- Co-authored-by: Clint Rutkas <clint@rutkas.com> Co-authored-by: vanzue <vanzue@outlook.com>
This commit is contained in:
2
.github/actions/spell-check/excludes.txt
vendored
2
.github/actions/spell-check/excludes.txt
vendored
@@ -143,3 +143,5 @@ ignore$
|
|||||||
^src/modules/registrypreview/RegistryPreviewUILib/Controls/HexBox/.*$
|
^src/modules/registrypreview/RegistryPreviewUILib/Controls/HexBox/.*$
|
||||||
^src/common/CalculatorEngineCommon/exprtk\.hpp$
|
^src/common/CalculatorEngineCommon/exprtk\.hpp$
|
||||||
src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleMarkdownImagesPage.cs
|
src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleMarkdownImagesPage.cs
|
||||||
|
^src/modules/powerrename/unittests/testdata/avif_test\.avif$
|
||||||
|
^src/modules/powerrename/unittests/testdata/heif_test\.heic$
|
||||||
|
|||||||
941
.github/actions/spell-check/expect.txt
vendored
941
.github/actions/spell-check/expect.txt
vendored
File diff suppressed because it is too large
Load Diff
@@ -108,9 +108,6 @@ jobs:
|
|||||||
sdk: true
|
sdk: true
|
||||||
version: '9.0'
|
version: '9.0'
|
||||||
|
|
||||||
- task: VisualStudioTestPlatformInstaller@1
|
|
||||||
displayName: Ensure VSTest Platform
|
|
||||||
|
|
||||||
- pwsh: |-
|
- pwsh: |-
|
||||||
& '$(build.sourcesdirectory)\.pipelines\InstallWinAppDriver.ps1'
|
& '$(build.sourcesdirectory)\.pipelines\InstallWinAppDriver.ps1'
|
||||||
displayName: Download and install WinAppDriver
|
displayName: Download and install WinAppDriver
|
||||||
@@ -152,46 +149,7 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
displaySettings: 'optimal'
|
displaySettings: 'optimal'
|
||||||
|
|
||||||
- ${{ if eq(length(parameters.uiTestModules), 0) }}:
|
- script: |
|
||||||
- task: VSTest@3
|
dotnet test $(Build.SourcesDirectory)\src\modules\fancyzones\FancyZones.UITests\FancyZones.UITests.csproj --no-build -c $(BuildConfiguration) -p:Platform=$(BuildPlatform)
|
||||||
displayName: Run UI Tests
|
dotnet test $(Build.SourcesDirectory)\src\modules\fancyzones\FancyZonesEditor.UITests\FancyZonesEditor.UITests.csproj --no-build -c $(BuildConfiguration) -p:Platform=$(BuildPlatform)
|
||||||
inputs:
|
displayName: "Run UI Tests"
|
||||||
platform: '$(BuildPlatform)'
|
|
||||||
configuration: '$(BuildConfiguration)'
|
|
||||||
testSelector: 'testAssemblies'
|
|
||||||
searchFolder: '$(Pipeline.Workspace)\$(TestArtifactsName)'
|
|
||||||
vsTestVersion: 'toolsInstaller'
|
|
||||||
uiTests: true
|
|
||||||
rerunFailedTests: true
|
|
||||||
testRunTitle: 'UITests_${{ parameters.platform }}_${{ parameters.installMode }}'
|
|
||||||
# Since UITests-FancyZonesEditor.dll is generated in both UITests-FancyZonesEditor and UITests-FancyZones, removed one to avoid duplicate test runs
|
|
||||||
testAssemblyVer2: |
|
|
||||||
**\*UITest*.dll
|
|
||||||
!**\obj\**
|
|
||||||
!**\ref\**
|
|
||||||
!**\UITests-FancyZones\**\UITests-FancyZonesEditor.dll
|
|
||||||
env:
|
|
||||||
platform: '$(TestPlatform)'
|
|
||||||
useInstallerForTest: ${{ ne(parameters.buildSource, 'buildNow') }}
|
|
||||||
|
|
||||||
- ${{ if ne(length(parameters.uiTestModules), 0) }}:
|
|
||||||
- ${{ each module in parameters.uiTestModules }}:
|
|
||||||
- task: VSTest@3
|
|
||||||
displayName: Run UI Test - ${{ module }}
|
|
||||||
inputs:
|
|
||||||
platform: '$(BuildPlatform)'
|
|
||||||
configuration: '$(BuildConfiguration)'
|
|
||||||
testSelector: 'testAssemblies'
|
|
||||||
searchFolder: '$(Pipeline.Workspace)\$(TestArtifactsName)'
|
|
||||||
vsTestVersion: 'toolsInstaller'
|
|
||||||
uiTests: true
|
|
||||||
rerunFailedTests: true
|
|
||||||
testRunTitle: 'UITests_${{ parameters.platform }}_${{ parameters.installMode }}'
|
|
||||||
testAssemblyVer2: |
|
|
||||||
**\*${{ module }}*.dll
|
|
||||||
!**\obj\**
|
|
||||||
!**\ref\**
|
|
||||||
!**\UITests-FancyZones\**\UITests-FancyZonesEditor.dll
|
|
||||||
env:
|
|
||||||
platform: '$(TestPlatform)'
|
|
||||||
useInstallerForTest: ${{ ne(parameters.buildSource, 'buildNow') }}
|
|
||||||
|
|||||||
@@ -93,7 +93,8 @@ if ($noticeMatch.Success) {
|
|||||||
# Test-only packages that are allowed to be in NOTICE.md but not in the build
|
# Test-only packages that are allowed to be in NOTICE.md but not in the build
|
||||||
# (e.g., when BuildTests=false, these packages won't appear in the NuGet list)
|
# (e.g., when BuildTests=false, these packages won't appear in the NuGet list)
|
||||||
$allowedExtraPackages = @(
|
$allowedExtraPackages = @(
|
||||||
"- Moq"
|
"- Moq",
|
||||||
|
"- MSTest"
|
||||||
)
|
)
|
||||||
|
|
||||||
if (!$noticeFile.Trim().EndsWith($returnList.Trim()))
|
if (!$noticeFile.Trim().EndsWith($returnList.Trim()))
|
||||||
|
|||||||
@@ -20,6 +20,23 @@
|
|||||||
<NuGetAuditMode>direct</NuGetAuditMode>
|
<NuGetAuditMode>direct</NuGetAuditMode>
|
||||||
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> <!-- Don't add source revision hash to the product version of binaries. -->
|
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> <!-- Don't add source revision hash to the product version of binaries. -->
|
||||||
<PlatformTarget>$(Platform)</PlatformTarget>
|
<PlatformTarget>$(Platform)</PlatformTarget>
|
||||||
|
|
||||||
|
<!-- Enable Microsoft.Testing.Platform -->
|
||||||
|
<EnableMSTestRunner>true</EnableMSTestRunner>
|
||||||
|
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
|
||||||
|
<TestingPlatformDotNetTestSupport>true</TestingPlatformDotNetTestSupport>
|
||||||
|
<TestingPlatformCommandLineArguments>$(TestingPlatformCommandLineArguments) --report-trx</TestingPlatformCommandLineArguments>
|
||||||
|
<!-- No arm64 agents to run the tests. -->
|
||||||
|
<TestingPlatformDisableCustomTestTarget Condition="'$(Platform)' == 'ARM64'">true</TestingPlatformDisableCustomTestTarget>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
UI tests are run in dedicated UI test jobs/pipelines.
|
||||||
|
In CI, the main build uses `/t:Build;Test` across the full solution, so
|
||||||
|
prevent UI test projects from being executed in that pass.
|
||||||
|
-->
|
||||||
|
<PropertyGroup Condition="'$(TF_BUILD)' != '' and $(MSBuildProjectName.Contains('UITest'))">
|
||||||
|
<TestingPlatformDisableCustomTestTarget>true</TestingPlatformDisableCustomTestTarget>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@@ -82,7 +99,15 @@
|
|||||||
</PackageReference>
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- Add ability to run tests via "msbuild /t:Test" -->
|
<!-- In CI, we build and test with `/t:Build;Test` -->
|
||||||
|
<!-- So, for non-test projects, we want the target to be there and it's basically doing nothing -->
|
||||||
|
<!-- For C# test projects, Microsoft.Testing.Platform should inject Test target here: -->
|
||||||
|
<!-- https://github.com/microsoft/testfx/blob/5ad21909704db501f58f27d4a7ec241edd761af5/src/Platform/Microsoft.Testing.Platform.MSBuild/buildMultiTargeting/Microsoft.Testing.Platform.MSBuild.targets#L270-L273 -->
|
||||||
|
<!-- For C++ test projects, the RunVSTest SDK will do its job -->
|
||||||
|
<Target Name="Test" />
|
||||||
|
|
||||||
|
<!-- Add ability to run tests via "msbuild /t:Test" using the RunVSTest SDK -->
|
||||||
|
<!-- This is only needed for C++, as we use Microsoft.Testing.Platform for C# -->
|
||||||
<!--
|
<!--
|
||||||
Work around an MSBuild bug where Microsoft.Common.Test.targets is missing from the Arm64 installation.
|
Work around an MSBuild bug where Microsoft.Common.Test.targets is missing from the Arm64 installation.
|
||||||
See: https://github.com/dotnet/msbuild/pull/9984
|
See: https://github.com/dotnet/msbuild/pull/9984
|
||||||
@@ -92,11 +117,11 @@
|
|||||||
Once the change referenced above is fixed, the ImportGroup below can be replaced with:
|
Once the change referenced above is fixed, the ImportGroup below can be replaced with:
|
||||||
<Sdk Name="Microsoft.Build.RunVSTest" Version="1.0.319" />
|
<Sdk Name="Microsoft.Build.RunVSTest" Version="1.0.319" />
|
||||||
-->
|
-->
|
||||||
<ImportGroup Condition="'$(PROCESSOR_ARCHITECTURE)' != 'ARM64'">
|
<ImportGroup Condition="'$(PROCESSOR_ARCHITECTURE)' != 'ARM64' AND ('$(Language)' == 'C++' OR '$(MSBuildProjectExtension)' == '.vcxproj')">
|
||||||
<Import Project="Sdk.props" Sdk="Microsoft.Build.RunVSTest" Version="1.0.319" />
|
<Import Project="Sdk.props" Sdk="Microsoft.Build.RunVSTest" Version="1.0.319" />
|
||||||
<Import Project="Sdk.targets" Sdk="Microsoft.Build.RunVSTest" Version="1.0.319" />
|
<Import Project="Sdk.targets" Sdk="Microsoft.Build.RunVSTest" Version="1.0.319" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup Condition="'$(Language)' == 'C++' OR '$(MSBuildProjectExtension)' == '.vcxproj'">
|
||||||
<VSTestLogger>trx</VSTestLogger>
|
<VSTestLogger>trx</VSTestLogger>
|
||||||
<!--
|
<!--
|
||||||
RunVSTest by default uses %VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe,
|
RunVSTest by default uses %VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe,
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||||
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
|
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
|
||||||
|
<MSTestVersion>3.8.3</MSTestVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageVersion Include="AdaptiveCards.ObjectModel.WinUI3" Version="2.0.0-beta" />
|
<PackageVersion Include="AdaptiveCards.ObjectModel.WinUI3" Version="2.0.0-beta" />
|
||||||
@@ -86,7 +87,8 @@
|
|||||||
<PackageVersion Include="ModernWpfUI" Version="0.9.4" />
|
<PackageVersion Include="ModernWpfUI" Version="0.9.4" />
|
||||||
<!-- Moq to stay below v4.20 due to behavior change. need to be sure fixed -->
|
<!-- Moq to stay below v4.20 due to behavior change. need to be sure fixed -->
|
||||||
<PackageVersion Include="Moq" Version="4.18.4" />
|
<PackageVersion Include="Moq" Version="4.18.4" />
|
||||||
<PackageVersion Include="MSTest" Version="3.8.3" />
|
<PackageVersion Include="MSTest" Version="$(MSTestVersion)" />
|
||||||
|
<PackageVersion Include="MSTest.TestFramework" Version="$(MSTestVersion)" />
|
||||||
<PackageVersion Include="NJsonSchema" Version="11.4.0" />
|
<PackageVersion Include="NJsonSchema" Version="11.4.0" />
|
||||||
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
|
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
|
||||||
<PackageVersion Include="NLog" Version="5.2.8" />
|
<PackageVersion Include="NLog" Version="5.2.8" />
|
||||||
|
|||||||
@@ -1582,6 +1582,7 @@ SOFTWARE.
|
|||||||
- ModernWpfUI
|
- ModernWpfUI
|
||||||
- Moq
|
- Moq
|
||||||
- MSTest
|
- MSTest
|
||||||
|
- MSTest.TestFramework
|
||||||
- NJsonSchema
|
- NJsonSchema
|
||||||
- NLog
|
- NLog
|
||||||
- NLog.Extensions.Logging
|
- NLog.Extensions.Logging
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<packageSources>
|
<packageSources>
|
||||||
<clear />
|
<clear />
|
||||||
|
|||||||
@@ -7,4 +7,13 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0-windows10.0.26100.0</TargetFramework>
|
<TargetFramework>net8.0-windows10.0.26100.0</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
In CI, the main build runs `/t:Build;Test` across the full solution.
|
||||||
|
Fuzz test projects are built for OneFuzz ingestion, but should not be
|
||||||
|
executed as regular MSTest tests in this pass.
|
||||||
|
-->
|
||||||
|
<PropertyGroup Condition="'$(TF_BUILD)' != ''">
|
||||||
|
<TestingPlatformDisableCustomTestTarget>true</TestingPlatformDisableCustomTestTarget>
|
||||||
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ using System.Runtime.CompilerServices;
|
|||||||
using System.Xml.Linq;
|
using System.Xml.Linq;
|
||||||
using ABI.Windows.Foundation;
|
using ABI.Windows.Foundation;
|
||||||
using Microsoft.PowerToys.UITest;
|
using Microsoft.PowerToys.UITest;
|
||||||
using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities;
|
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
using OpenQA.Selenium;
|
using OpenQA.Selenium;
|
||||||
using OpenQA.Selenium.Appium;
|
using OpenQA.Selenium.Appium;
|
||||||
|
|||||||
@@ -15,7 +15,8 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Appium.WebDriver" />
|
<PackageReference Include="Appium.WebDriver" />
|
||||||
<PackageReference Include="MSTest" />
|
<!-- Test libraries/utilities should not use the metapackage. -->
|
||||||
|
<PackageReference Include="MSTest.TestFramework" />
|
||||||
<PackageReference Include="System.IO.Abstractions" />
|
<PackageReference Include="System.IO.Abstractions" />
|
||||||
<PackageReference Include="System.Text.RegularExpressions" />
|
<PackageReference Include="System.Text.RegularExpressions" />
|
||||||
<PackageReference Include="CoenM.ImageSharp.ImageHash" />
|
<PackageReference Include="CoenM.ImageSharp.ImageHash" />
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>Microsoft.Interop.Tests</RootNamespace>
|
<RootNamespace>Microsoft.Interop.Tests</RootNamespace>
|
||||||
<AssemblyName>Microsoft.Interop.Tests</AssemblyName>
|
<AssemblyName>Microsoft.Interop.Tests</AssemblyName>
|
||||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<OutputPath>$(RepoRoot)$(Configuration)\$(Platform)\tests\PowerToys.DSC.Tests\</OutputPath>
|
<OutputPath>$(RepoRoot)$(Configuration)\$(Platform)\tests\PowerToys.DSC.Tests\</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
<Message Text="Generating DSC resource JSON files to DSCModules subfolder..." Importance="high" />
|
<Message Text="Generating DSC resource JSON files to DSCModules subfolder..." Importance="high" />
|
||||||
<MakeDir Directories="$(TargetDir)DSCModules" />
|
<MakeDir Directories="$(TargetDir)DSCModules" />
|
||||||
|
|
||||||
<Exec Command="dotnet "$(TargetPath)" manifest --resource settings --outputDir "$(TargetDir)DSCModules"" />
|
<Exec Command=""$(TargetDir)$(AssemblyName).exe" manifest --resource settings --outputDir "$(TargetDir)DSCModules"" Condition="'$(SelfContained)' == 'true'" />
|
||||||
|
<Exec Command="dotnet "$(TargetPath)" manifest --resource settings --outputDir "$(TargetDir)DSCModules"" Condition="'$(SelfContained)' != 'true'" />
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -6,6 +6,12 @@
|
|||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
|
||||||
|
<!-- exit code 8 means no tests ran. -->
|
||||||
|
<!-- Doc: https://learn.microsoft.com/dotnet/core/testing/unit-testing-platform-exit-codes -->
|
||||||
|
<!-- This test project doesn't seem to contain any tests. -->
|
||||||
|
<TestingPlatformCommandLineArguments>$(TestingPlatformCommandLineArguments) --ignore-exit-code 8</TestingPlatformCommandLineArguments>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputPath>$(RepoRoot)$(Platform)\$(Configuration)\tests\AdvancedPaste.FuzzTests\</OutputPath>
|
<OutputPath>$(RepoRoot)$(Platform)\$(Configuration)\tests\AdvancedPaste.FuzzTests\</OutputPath>
|
||||||
|
|||||||
@@ -3,11 +3,14 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||||
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
||||||
<OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\tests\AdvancedPaste.UnitTests\</OutputPath>
|
<OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\tests\AdvancedPaste.UnitTests\</OutputPath>
|
||||||
<IsTestProject>true</IsTestProject>
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -7,6 +7,11 @@
|
|||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<DefineConstants>TESTONLY</DefineConstants>
|
<DefineConstants>TESTONLY</DefineConstants>
|
||||||
|
|
||||||
|
<!-- exit code 8 means no tests ran. -->
|
||||||
|
<!-- Doc: https://learn.microsoft.com/dotnet/core/testing/unit-testing-platform-exit-codes -->
|
||||||
|
<!-- This test project doesn't seem to contain any tests. -->
|
||||||
|
<TestingPlatformCommandLineArguments>$(TestingPlatformCommandLineArguments) --ignore-exit-code 8</TestingPlatformCommandLineArguments>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\tests\Hosts.Tests\</OutputPath>
|
<OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\tests\Hosts.Tests\</OutputPath>
|
||||||
<RootNamespace>Hosts.Tests</RootNamespace>
|
<RootNamespace>Hosts.Tests</RootNamespace>
|
||||||
<AssemblyName>PowerToys.Hosts.Tests</AssemblyName>
|
<AssemblyName>PowerToys.Hosts.Tests</AssemblyName>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<AssemblyName>PowerToys.MouseJump.Common.UnitTests</AssemblyName>
|
<AssemblyName>PowerToys.MouseJump.Common.UnitTests</AssemblyName>
|
||||||
<AssemblyTitle>PowerToys.MouseJump.Common.UnitTests</AssemblyTitle>
|
<AssemblyTitle>PowerToys.MouseJump.Common.UnitTests</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys MouseJump.Common.UnitTests</AssemblyDescription>
|
<AssemblyDescription>PowerToys MouseJump.Common.UnitTests</AssemblyDescription>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<OutputPath>$(RepoRoot)$(Platform)\$(Configuration)\tests\MouseJump.Common.UnitTests\</OutputPath>
|
<OutputPath>$(RepoRoot)$(Platform)\$(Configuration)\tests\MouseJump.Common.UnitTests\</OutputPath>
|
||||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||||
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
||||||
|
|||||||
@@ -6,7 +6,13 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
|
|
||||||
|
<!-- exit code 8 means no tests ran. -->
|
||||||
|
<!-- Doc: https://learn.microsoft.com/dotnet/core/testing/unit-testing-platform-exit-codes -->
|
||||||
|
<!-- This test project contains a single test but it's ignored. -->
|
||||||
|
<!-- Remove this line if more tests are added or if the test is un-ignored -->
|
||||||
|
<TestingPlatformCommandLineArguments>$(TestingPlatformCommandLineArguments) --ignore-exit-code 8</TestingPlatformCommandLineArguments>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -2,10 +2,13 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RunVSTest>false</RunVSTest>
|
<RunVSTest>false</RunVSTest>
|
||||||
<IsTestProject>true</IsTestProject>
|
<IsTestProject>true</IsTestProject>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<RootNamespace>Microsoft.CmdPal.Ext.UnitTestsBase</RootNamespace>
|
<RootNamespace>Microsoft.CmdPal.Ext.UnitTestsBase</RootNamespace>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
<!-- Shared test helper assembly; it contains no tests and should never be executed directly. -->
|
||||||
|
<TestingPlatformDisableCustomTestTarget>true</TestingPlatformDisableCustomTestTarget>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<IsTestProject>true</IsTestProject>
|
<IsTestProject>true</IsTestProject>
|
||||||
<RootNamespace>Microsoft.CmdPal.Ext.WindowWalker.UnitTests</RootNamespace>
|
<RootNamespace>Microsoft.CmdPal.Ext.WindowWalker.UnitTests</RootNamespace>
|
||||||
|
<!-- This project currently contains shared test helpers only (no test methods). -->
|
||||||
|
<TestingPlatformDisableCustomTestTarget>true</TestingPlatformDisableCustomTestTarget>
|
||||||
<OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\WinUI3Apps\CmdPal\tests\</OutputPath>
|
<OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\WinUI3Apps\CmdPal\tests\</OutputPath>
|
||||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||||
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
||||||
|
|||||||
@@ -3,11 +3,14 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<ProjectGuid>{F93C2817-C846-4259-84D8-B39A6B57C8DE}</ProjectGuid>
|
<ProjectGuid>{F93C2817-C846-4259-84D8-B39A6B57C8DE}</ProjectGuid>
|
||||||
<RootNamespace>ColorPicker.UnitTests</RootNamespace>
|
<RootNamespace>ColorPicker.UnitTests</RootNamespace>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -7,10 +7,13 @@
|
|||||||
<RootNamespace>Microsoft.FancyZones.UITests</RootNamespace>
|
<RootNamespace>Microsoft.FancyZones.UITests</RootNamespace>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
|
|
||||||
<!-- This is a UI test, so don't run as part of MSBuild -->
|
<!-- This is a UI test, so don't run as part of the Test target -->
|
||||||
<RunVSTest>false</RunVSTest>
|
<TestingPlatformDisableCustomTestTarget>true</TestingPlatformDisableCustomTestTarget>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -7,10 +7,13 @@
|
|||||||
<RootNamespace>Microsoft.FancyZonesEditor.UITests</RootNamespace>
|
<RootNamespace>Microsoft.FancyZonesEditor.UITests</RootNamespace>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
|
|
||||||
<!-- This is a UI test, so don't run as part of MSBuild -->
|
<!-- This is a UI test, so don't run as part of the Test target -->
|
||||||
<RunVSTest>false</RunVSTest>
|
<TestingPlatformDisableCustomTestTarget>true</TestingPlatformDisableCustomTestTarget>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -7,8 +7,11 @@
|
|||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
<IsPackable>false</IsPackable>
|
|
||||||
<IsTestProject>true</IsTestProject>
|
<IsTestProject>true</IsTestProject>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<OutputPath>$(RepoRoot)$(Platform)\$(Configuration)\tests\UnitTest-FancyZonesEditor\</OutputPath>
|
<OutputPath>$(RepoRoot)$(Platform)\$(Configuration)\tests\UnitTest-FancyZonesEditor\</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,10 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ProjectGuid>{E0CC7526-D85E-43AC-844F-D5DF0D2F5AB8}</ProjectGuid>
|
<ProjectGuid>{E0CC7526-D85E-43AC-844F-D5DF0D2F5AB8}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>ImageResizer</RootNamespace>
|
<RootNamespace>ImageResizer</RootNamespace>
|
||||||
<AssemblyName>ImageResizer.Test</AssemblyName>
|
<AssemblyName>ImageResizer.Test</AssemblyName>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<RootNamespace>Microsoft.Plugin.Folder.UnitTests</RootNamespace>
|
<RootNamespace>Microsoft.Plugin.Folder.UnitTests</RootNamespace>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<ApplicationManifest>AppxManifests\developmentApp\AppxManifest.xml</ApplicationManifest>
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<RootNamespace>Microsoft.Plugin.Uri.UnitTests</RootNamespace>
|
<RootNamespace>Microsoft.Plugin.Uri.UnitTests</RootNamespace>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<RootNamespace>Microsoft.Plugin.WindowWalker.UnitTests</RootNamespace>
|
<RootNamespace>Microsoft.Plugin.WindowWalker.UnitTests</RootNamespace>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<RootNamespace>Microsoft.PowerToys.Run.Plugin.Calculator.UnitTests</RootNamespace>
|
<RootNamespace>Microsoft.PowerToys.Run.Plugin.Calculator.UnitTests</RootNamespace>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<RootNamespace>Microsoft.PowerToys.Run.Plugin.System.UnitTests</RootNamespace>
|
<RootNamespace>Microsoft.PowerToys.Run.Plugin.System.UnitTests</RootNamespace>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<RootNamespace>Microsoft.PowerToys.Run.Plugin.TimeDate.UnitTests</RootNamespace>
|
<RootNamespace>Microsoft.PowerToys.Run.Plugin.TimeDate.UnitTests</RootNamespace>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,8 +3,11 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<ProjectGuid>{FF742965-9A80-41A5-B042-D6C7D3A21708}</ProjectGuid>
|
<ProjectGuid>{FF742965-9A80-41A5-B042-D6C7D3A21708}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>Wox.Test</RootNamespace>
|
<RootNamespace>Wox.Test</RootNamespace>
|
||||||
<AssemblyName>Wox.Test</AssemblyName>
|
<AssemblyName>Wox.Test</AssemblyName>
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
<AssemblyTitle>UnitTests-BgcodePreviewHandler</AssemblyTitle>
|
<AssemblyTitle>UnitTests-BgcodePreviewHandler</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-BgcodePreviewHandler</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-BgcodePreviewHandler</AssemblyDescription>
|
||||||
<Description>PowerToys UnitTests-BgcodePreviewHandler</Description>
|
<Description>PowerToys UnitTests-BgcodePreviewHandler</Description>
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
<AssemblyTitle>UnitTests-BgcodeThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-BgcodeThumbnailProvider</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-BgcodeThumbnailProvider</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-BgcodeThumbnailProvider</AssemblyDescription>
|
||||||
<AssemblyTitle>UnitTests-BgcodeThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-BgcodeThumbnailProvider</AssemblyTitle>
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<AssemblyTitle>UnitTests-GcodePreviewHandler</AssemblyTitle>
|
<AssemblyTitle>UnitTests-GcodePreviewHandler</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-GcodePreviewHandler</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-GcodePreviewHandler</AssemblyDescription>
|
||||||
<AssemblyTitle>UnitTests-GcodePreviewHandler</AssemblyTitle>
|
<AssemblyTitle>UnitTests-GcodePreviewHandler</AssemblyTitle>
|
||||||
@@ -13,6 +16,7 @@
|
|||||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||||
<IsCodedUITest>False</IsCodedUITest>
|
<IsCodedUITest>False</IsCodedUITest>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<AssemblyTitle>UnitTests-GcodeThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-GcodeThumbnailProvider</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-GcodeThumbnailProvider</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-GcodeThumbnailProvider</AssemblyDescription>
|
||||||
<AssemblyTitle>UnitTests-GcodeThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-GcodeThumbnailProvider</AssemblyTitle>
|
||||||
@@ -14,6 +17,7 @@
|
|||||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||||
<IsCodedUITest>False</IsCodedUITest>
|
<IsCodedUITest>False</IsCodedUITest>
|
||||||
<TestProjectType>UnitTest</TestProjectType>
|
<TestProjectType>UnitTest</TestProjectType>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<AssemblyTitle>UnitTests-MarkdownPreviewHandler</AssemblyTitle>
|
<AssemblyTitle>UnitTests-MarkdownPreviewHandler</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-MarkdownPreviewHandler</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-MarkdownPreviewHandler</AssemblyDescription>
|
||||||
<AssemblyTitle>UnitTests-MarkdownPreviewHandler</AssemblyTitle>
|
<AssemblyTitle>UnitTests-MarkdownPreviewHandler</AssemblyTitle>
|
||||||
@@ -14,6 +17,7 @@
|
|||||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||||
<IsCodedUITest>False</IsCodedUITest>
|
<IsCodedUITest>False</IsCodedUITest>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<AssemblyTitle>UnitTests-PdfPreviewHandler</AssemblyTitle>
|
<AssemblyTitle>UnitTests-PdfPreviewHandler</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-PdfPreviewHandler</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-PdfPreviewHandler</AssemblyDescription>
|
||||||
<AssemblyTitle>UnitTests-PdfPreviewHandler</AssemblyTitle>
|
<AssemblyTitle>UnitTests-PdfPreviewHandler</AssemblyTitle>
|
||||||
@@ -13,6 +16,7 @@
|
|||||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||||
<IsCodedUITest>False</IsCodedUITest>
|
<IsCodedUITest>False</IsCodedUITest>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<AssemblyTitle>UnitTests-PdfThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-PdfThumbnailProvider</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-PdfThumbnailProvider</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-PdfThumbnailProvider</AssemblyDescription>
|
||||||
<AssemblyTitle>UnitTests-PdfThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-PdfThumbnailProvider</AssemblyTitle>
|
||||||
@@ -14,6 +17,7 @@
|
|||||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||||
<IsCodedUITest>False</IsCodedUITest>
|
<IsCodedUITest>False</IsCodedUITest>
|
||||||
<TestProjectType>UnitTest</TestProjectType>
|
<TestProjectType>UnitTest</TestProjectType>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||||
<IsCodedUITest>False</IsCodedUITest>
|
<IsCodedUITest>False</IsCodedUITest>
|
||||||
<TestProjectType>UnitTest</TestProjectType>
|
<TestProjectType>UnitTest</TestProjectType>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<AssemblyTitle>UnitTests-QoiPreviewHandler</AssemblyTitle>
|
<AssemblyTitle>UnitTests-QoiPreviewHandler</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-QoiPreviewHandler</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-QoiPreviewHandler</AssemblyDescription>
|
||||||
<AssemblyTitle>UnitTests-QoiPreviewHandler</AssemblyTitle>
|
<AssemblyTitle>UnitTests-QoiPreviewHandler</AssemblyTitle>
|
||||||
@@ -13,6 +16,7 @@
|
|||||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||||
<IsCodedUITest>False</IsCodedUITest>
|
<IsCodedUITest>False</IsCodedUITest>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<AssemblyTitle>UnitTests-QoiThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-QoiThumbnailProvider</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-QoiThumbnailProvider</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-QoiThumbnailProvider</AssemblyDescription>
|
||||||
<AssemblyTitle>UnitTests-QoiThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-QoiThumbnailProvider</AssemblyTitle>
|
||||||
@@ -14,6 +17,7 @@
|
|||||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||||
<IsCodedUITest>False</IsCodedUITest>
|
<IsCodedUITest>False</IsCodedUITest>
|
||||||
<TestProjectType>UnitTest</TestProjectType>
|
<TestProjectType>UnitTest</TestProjectType>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<AssemblyTitle>UnitTests-StlThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-StlThumbnailProvider</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-StlThumbnailProvider</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-StlThumbnailProvider</AssemblyDescription>
|
||||||
<AssemblyTitle>UnitTests-StlThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-StlThumbnailProvider</AssemblyTitle>
|
||||||
@@ -14,6 +17,7 @@
|
|||||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||||
<IsCodedUITest>False</IsCodedUITest>
|
<IsCodedUITest>False</IsCodedUITest>
|
||||||
<TestProjectType>UnitTest</TestProjectType>
|
<TestProjectType>UnitTest</TestProjectType>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<AssemblyTitle>UnitTests-SvgPreviewHandler</AssemblyTitle>
|
<AssemblyTitle>UnitTests-SvgPreviewHandler</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-SvgPreviewHandler</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-SvgPreviewHandler</AssemblyDescription>
|
||||||
<AssemblyTitle>UnitTests-SvgPreviewHandler</AssemblyTitle>
|
<AssemblyTitle>UnitTests-SvgPreviewHandler</AssemblyTitle>
|
||||||
@@ -14,6 +17,7 @@
|
|||||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||||
<IsCodedUITest>False</IsCodedUITest>
|
<IsCodedUITest>False</IsCodedUITest>
|
||||||
<TestProjectType>UnitTest</TestProjectType>
|
<TestProjectType>UnitTest</TestProjectType>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
<AssemblyTitle>UnitTests-SvgThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-SvgThumbnailProvider</AssemblyTitle>
|
||||||
<AssemblyDescription>PowerToys UnitTests-SvgThumbnailProvider</AssemblyDescription>
|
<AssemblyDescription>PowerToys UnitTests-SvgThumbnailProvider</AssemblyDescription>
|
||||||
<AssemblyTitle>UnitTests-SvgThumbnailProvider</AssemblyTitle>
|
<AssemblyTitle>UnitTests-SvgThumbnailProvider</AssemblyTitle>
|
||||||
@@ -17,6 +20,7 @@
|
|||||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||||
<IsCodedUITest>False</IsCodedUITest>
|
<IsCodedUITest>False</IsCodedUITest>
|
||||||
<TestProjectType>UnitTest</TestProjectType>
|
<TestProjectType>UnitTest</TestProjectType>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<SelfContained>true</SelfContained>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'x64'">win-x64</RuntimeIdentifier>
|
||||||
|
<RuntimeIdentifier Condition="'$(Platform)' == 'ARM64'">win-arm64</RuntimeIdentifier>
|
||||||
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<OutputPath>$(RepoRoot)$(Configuration)\$(Platform)\tests\SettingsTests\</OutputPath>
|
<OutputPath>$(RepoRoot)$(Configuration)\$(Platform)\tests\SettingsTests\</OutputPath>
|
||||||
|
|
||||||
@@ -10,6 +14,7 @@
|
|||||||
<!-- These are caused by streamjsonrpc dependency on Microsoft.VisualStudio.Threading.Analyzers -->
|
<!-- These are caused by streamjsonrpc dependency on Microsoft.VisualStudio.Threading.Analyzers -->
|
||||||
<!-- We might want to add that to the project and fix the issues as well -->
|
<!-- We might want to add that to the project and fix the issues as well -->
|
||||||
<NoWarn>VSTHRD002;VSTHRD110;VSTHRD100;VSTHRD200;VSTHRD101</NoWarn>
|
<NoWarn>VSTHRD002;VSTHRD110;VSTHRD100;VSTHRD200;VSTHRD101</NoWarn>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -126,10 +126,22 @@ namespace ViewModelTests
|
|||||||
public void StartupShouldEnableRunOnStartUpWhenSuccessful()
|
public void StartupShouldEnableRunOnStartUpWhenSuccessful()
|
||||||
{
|
{
|
||||||
// Assert
|
// Assert
|
||||||
|
bool sawExpectedIpcPayload = false;
|
||||||
Func<string, int> sendMockIPCConfigMSG = msg =>
|
Func<string, int> sendMockIPCConfigMSG = msg =>
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(msg))
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
OutGoingGeneralSettings snd = JsonSerializer.Deserialize<OutGoingGeneralSettings>(msg);
|
OutGoingGeneralSettings snd = JsonSerializer.Deserialize<OutGoingGeneralSettings>(msg);
|
||||||
|
if (snd?.GeneralSettings is null)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
Assert.IsTrue(snd.GeneralSettings.Startup);
|
Assert.IsTrue(snd.GeneralSettings.Startup);
|
||||||
|
sawExpectedIpcPayload = true;
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -150,16 +162,29 @@ namespace ViewModelTests
|
|||||||
|
|
||||||
// act
|
// act
|
||||||
viewModel.Startup = true;
|
viewModel.Startup = true;
|
||||||
|
Assert.IsTrue(sawExpectedIpcPayload);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void RunElevatedShouldEnableAlwaysRunElevatedWhenSuccessful()
|
public void RunElevatedShouldEnableAlwaysRunElevatedWhenSuccessful()
|
||||||
{
|
{
|
||||||
// Assert
|
// Assert
|
||||||
|
bool sawExpectedIpcPayload = false;
|
||||||
Func<string, int> sendMockIPCConfigMSG = msg =>
|
Func<string, int> sendMockIPCConfigMSG = msg =>
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(msg))
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
OutGoingGeneralSettings snd = JsonSerializer.Deserialize<OutGoingGeneralSettings>(msg);
|
OutGoingGeneralSettings snd = JsonSerializer.Deserialize<OutGoingGeneralSettings>(msg);
|
||||||
|
if (snd?.GeneralSettings is null)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
Assert.IsTrue(snd.GeneralSettings.RunElevated);
|
Assert.IsTrue(snd.GeneralSettings.RunElevated);
|
||||||
|
sawExpectedIpcPayload = true;
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -182,6 +207,7 @@ namespace ViewModelTests
|
|||||||
|
|
||||||
// act
|
// act
|
||||||
viewModel.RunElevated = true;
|
viewModel.RunElevated = true;
|
||||||
|
Assert.IsTrue(sawExpectedIpcPayload);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
@@ -189,12 +215,24 @@ namespace ViewModelTests
|
|||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
GeneralViewModel viewModel = null;
|
GeneralViewModel viewModel = null;
|
||||||
|
bool sawExpectedIpcPayload = false;
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Func<string, int> sendMockIPCConfigMSG = msg =>
|
Func<string, int> sendMockIPCConfigMSG = msg =>
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(msg))
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
OutGoingGeneralSettings snd = JsonSerializer.Deserialize<OutGoingGeneralSettings>(msg);
|
OutGoingGeneralSettings snd = JsonSerializer.Deserialize<OutGoingGeneralSettings>(msg);
|
||||||
|
if (snd?.GeneralSettings is null)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
Assert.AreEqual("light", snd.GeneralSettings.Theme);
|
Assert.AreEqual("light", snd.GeneralSettings.Theme);
|
||||||
|
sawExpectedIpcPayload = true;
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -214,17 +252,29 @@ namespace ViewModelTests
|
|||||||
|
|
||||||
// act
|
// act
|
||||||
viewModel.ThemeIndex = 1;
|
viewModel.ThemeIndex = 1;
|
||||||
|
Assert.IsTrue(sawExpectedIpcPayload);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void IsDarkThemeRadioButtonCheckedShouldThemeToDarkWhenSuccessful()
|
public void IsDarkThemeRadioButtonCheckedShouldThemeToDarkWhenSuccessful()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
// Assert
|
bool sawExpectedIpcPayload = false;
|
||||||
Func<string, int> sendMockIPCConfigMSG = msg =>
|
Func<string, int> sendMockIPCConfigMSG = msg =>
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(msg))
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
OutGoingGeneralSettings snd = JsonSerializer.Deserialize<OutGoingGeneralSettings>(msg);
|
OutGoingGeneralSettings snd = JsonSerializer.Deserialize<OutGoingGeneralSettings>(msg);
|
||||||
|
if (snd?.GeneralSettings is null)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
Assert.AreEqual("dark", snd.GeneralSettings.Theme);
|
Assert.AreEqual("dark", snd.GeneralSettings.Theme);
|
||||||
|
sawExpectedIpcPayload = true;
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -244,17 +294,29 @@ namespace ViewModelTests
|
|||||||
|
|
||||||
// act
|
// act
|
||||||
viewModel.ThemeIndex = 0;
|
viewModel.ThemeIndex = 0;
|
||||||
|
Assert.IsTrue(sawExpectedIpcPayload);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void IsShowSysTrayIconEnabledByDefaultShouldDisableWhenSuccessful()
|
public void IsShowSysTrayIconEnabledByDefaultShouldDisableWhenSuccessful()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
// Assert
|
bool sawExpectedIpcPayload = false;
|
||||||
Func<string, int> sendMockIPCConfigMSG = msg =>
|
Func<string, int> sendMockIPCConfigMSG = msg =>
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(msg))
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
OutGoingGeneralSettings snd = JsonSerializer.Deserialize<OutGoingGeneralSettings>(msg);
|
OutGoingGeneralSettings snd = JsonSerializer.Deserialize<OutGoingGeneralSettings>(msg);
|
||||||
|
if (snd?.GeneralSettings is null)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
Assert.IsFalse(snd.GeneralSettings.ShowSysTrayIcon);
|
Assert.IsFalse(snd.GeneralSettings.ShowSysTrayIcon);
|
||||||
|
sawExpectedIpcPayload = true;
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -274,6 +336,7 @@ namespace ViewModelTests
|
|||||||
|
|
||||||
// Act
|
// Act
|
||||||
viewModel.ShowSysTrayIcon = false;
|
viewModel.ShowSysTrayIcon = false;
|
||||||
|
Assert.IsTrue(sawExpectedIpcPayload);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
|||||||
Reference in New Issue
Block a user