-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Settings] Unit Tests Migration Feature Branch Merge (#5754)
* added MSTest project * enabled settings tests run in the build pipeline * re-added settings test project * re-added test project and sample test * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * updated settings test output path * updated output path for release config * added xunit test project * removed xunit test project * fix build * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-ci.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-ci.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml * Update build-powertoys-steps.yml
- Loading branch information
Nkateko
committed
Aug 13, 2020
1 parent
d1ee9eb
commit ebd1a64
Showing
29 changed files
with
226 additions
and
2,219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
src/core/Microsoft.PowerToys.Settings.UI.UnitTests/General.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) Microsoft Corporation | ||
// The Microsoft Corporation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System; | ||
using System.IO; | ||
using System.Text.Json; | ||
using Microsoft.PowerToys.Settings.UI.Lib; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace ViewModelTests | ||
{ | ||
[TestClass] | ||
public class SampleTest | ||
{ | ||
[TestInitialize] | ||
public void Setup() | ||
{ | ||
} | ||
|
||
[TestCleanup] | ||
public void CleanUp() | ||
{ | ||
} | ||
|
||
[TestMethod] | ||
public void SampleTest_For_Settings() | ||
{ | ||
|
||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...icrosoft.PowerToys.Settings.UI.UnitTests/Microsoft.PowerToys.Settings.UI.UnitTests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
|
||
<IsPackable>false</IsPackable> | ||
|
||
<Platforms>AnyCPU;x64</Platforms> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<OutputPath>..\..\..\x64\Debug\SettingsTests\</OutputPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<OutputPath>..\..\..\x64\Release\SettingsTest\</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" /> | ||
<PackageReference Include="MSTest.TestAdapter" Version="2.1.0" /> | ||
<PackageReference Include="MSTest.TestFramework" Version="2.1.0" /> | ||
<PackageReference Include="coverlet.collector" Version="1.2.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Microsoft.PowerToys.Settings.UI.Lib\Microsoft.PowerToys.Settings.UI.Lib.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Binary file removed
BIN
-1.4 KB
src/core/Microsoft.PowerToys.Settings.UnitTest/Assets/LockScreenLogo.scale-200.png
Binary file not shown.
Binary file removed
BIN
-7.52 KB
src/core/Microsoft.PowerToys.Settings.UnitTest/Assets/SplashScreen.scale-200.png
Binary file not shown.
Binary file removed
BIN
-2.87 KB
...re/Microsoft.PowerToys.Settings.UnitTest/Assets/Square150x150Logo.scale-200.png
Binary file not shown.
Binary file removed
BIN
-1.61 KB
...core/Microsoft.PowerToys.Settings.UnitTest/Assets/Square44x44Logo.scale-200.png
Binary file not shown.
Binary file removed
BIN
-1.23 KB
...oys.Settings.UnitTest/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
Binary file not shown.
Binary file removed
BIN
-1.42 KB
src/core/Microsoft.PowerToys.Settings.UnitTest/Assets/StoreLogo.png
Binary file not shown.
Binary file removed
BIN
-3.13 KB
...core/Microsoft.PowerToys.Settings.UnitTest/Assets/Wide310x150Logo.scale-200.png
Binary file not shown.
253 changes: 0 additions & 253 deletions
253
src/core/Microsoft.PowerToys.Settings.UnitTest/Microsoft.PowerToys.Settings.UnitTest.csproj
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.