Skip to content

Commit 9a50294

Browse files
committed
Remove WindowsRuntimeComponent tests
That target is not compatible with testing NUnit test framework and we can't reference it from .NET or .NetCoreApp. Up until now we had a WindowsRuntimeComponent.ForTests project, which targeted .NET but had the same conditional compilation as WRC. The problem, however, is that it can't access WRC specific attributes and types, so that approach started to fail already. Instead, we rely on the testing done with full framework since the differences are mainly on public signatures and the compilation should do most of the necessary checking for us.
1 parent a3b5ecc commit 9a50294

File tree

4 files changed

+4
-94
lines changed

4 files changed

+4
-94
lines changed

Build/build-functions.psm1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ function Start-Tests {
4747
$projectPaths = @(
4848
"UnitsNet.Tests\UnitsNet.Tests.NetCore.csproj",
4949
"UnitsNet.Serialization.JsonNet.Tests\UnitsNet.Serialization.JsonNet.Tests.NetCore.csproj"
50-
"UnitsNet.Tests.WindowsRuntimeComponent\UnitsNet.Tests.WindowsRuntimeComponent.csproj"
5150
)
5251

5352
# Parent dir must exist before xunit tries to write files to it

UnitsNet.Tests.WindowsRuntimeComponent/UnitsNet.Tests.WindowsRuntimeComponent.csproj

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 15
3-
VisualStudioVersion = 15.0.26430.13
3+
VisualStudioVersion = 15.0.27004.2002
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitsNet.WindowsRuntimeComponent.ForTests", "UnitsNet\UnitsNet.WindowsRuntimeComponent.ForTests.csproj", "{1867DC45-FCB2-43E9-93CE-993368698636}"
6-
EndProject
7-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitsNet.Tests.WindowsRuntimeComponent", "UnitsNet.Tests.WindowsRuntimeComponent\UnitsNet.Tests.WindowsRuntimeComponent.csproj", "{FA58450A-9777-42C4-8F72-541E1889A5C6}"
8-
EndProject
95
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitsNet.WindowsRuntimeComponent", "UnitsNet\UnitsNet.WindowsRuntimeComponent.csproj", "{2DA428CA-BFE1-43FA-86D2-7CB42289D596}"
106
EndProject
117
Global
@@ -20,38 +16,6 @@ Global
2016
Release|x86 = Release|x86
2117
EndGlobalSection
2218
GlobalSection(ProjectConfigurationPlatforms) = postSolution
23-
{1867DC45-FCB2-43E9-93CE-993368698636}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24-
{1867DC45-FCB2-43E9-93CE-993368698636}.Debug|Any CPU.Build.0 = Debug|Any CPU
25-
{1867DC45-FCB2-43E9-93CE-993368698636}.Debug|ARM.ActiveCfg = Debug|Any CPU
26-
{1867DC45-FCB2-43E9-93CE-993368698636}.Debug|ARM.Build.0 = Debug|Any CPU
27-
{1867DC45-FCB2-43E9-93CE-993368698636}.Debug|x64.ActiveCfg = Debug|Any CPU
28-
{1867DC45-FCB2-43E9-93CE-993368698636}.Debug|x64.Build.0 = Debug|Any CPU
29-
{1867DC45-FCB2-43E9-93CE-993368698636}.Debug|x86.ActiveCfg = Debug|Any CPU
30-
{1867DC45-FCB2-43E9-93CE-993368698636}.Debug|x86.Build.0 = Debug|Any CPU
31-
{1867DC45-FCB2-43E9-93CE-993368698636}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{1867DC45-FCB2-43E9-93CE-993368698636}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{1867DC45-FCB2-43E9-93CE-993368698636}.Release|ARM.ActiveCfg = Release|Any CPU
34-
{1867DC45-FCB2-43E9-93CE-993368698636}.Release|ARM.Build.0 = Release|Any CPU
35-
{1867DC45-FCB2-43E9-93CE-993368698636}.Release|x64.ActiveCfg = Release|Any CPU
36-
{1867DC45-FCB2-43E9-93CE-993368698636}.Release|x64.Build.0 = Release|Any CPU
37-
{1867DC45-FCB2-43E9-93CE-993368698636}.Release|x86.ActiveCfg = Release|Any CPU
38-
{1867DC45-FCB2-43E9-93CE-993368698636}.Release|x86.Build.0 = Release|Any CPU
39-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Debug|Any CPU.Build.0 = Debug|Any CPU
41-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Debug|ARM.ActiveCfg = Debug|Any CPU
42-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Debug|ARM.Build.0 = Debug|Any CPU
43-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Debug|x64.ActiveCfg = Debug|Any CPU
44-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Debug|x64.Build.0 = Debug|Any CPU
45-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Debug|x86.ActiveCfg = Debug|Any CPU
46-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Debug|x86.Build.0 = Debug|Any CPU
47-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Release|Any CPU.ActiveCfg = Release|Any CPU
48-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Release|Any CPU.Build.0 = Release|Any CPU
49-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Release|ARM.ActiveCfg = Release|Any CPU
50-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Release|ARM.Build.0 = Release|Any CPU
51-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Release|x64.ActiveCfg = Release|Any CPU
52-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Release|x64.Build.0 = Release|Any CPU
53-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Release|x86.ActiveCfg = Release|Any CPU
54-
{FA58450A-9777-42C4-8F72-541E1889A5C6}.Release|x86.Build.0 = Release|Any CPU
5519
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5620
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Debug|Any CPU.Build.0 = Debug|Any CPU
5721
{2DA428CA-BFE1-43FA-86D2-7CB42289D596}.Debug|ARM.ActiveCfg = Debug|ARM
@@ -72,4 +36,7 @@ Global
7236
GlobalSection(SolutionProperties) = preSolution
7337
HideSolutionNode = FALSE
7438
EndGlobalSection
39+
GlobalSection(ExtensibilityGlobals) = postSolution
40+
SolutionGuid = {F00A533B-6E8A-4169-9018-F9D6232A7E3C}
41+
EndGlobalSection
7542
EndGlobal

UnitsNet/UnitsNet.WindowsRuntimeComponent.ForTests.csproj

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)