Skip to content

Commit

Permalink
housekeeping: remove netstandard/monoandroid/uwp from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glennawatson committed Oct 13, 2020
1 parent 6474e1d commit 052b859
Show file tree
Hide file tree
Showing 27 changed files with 209 additions and 51 deletions.
2 changes: 2 additions & 0 deletions src/Splat.Drawing/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@

[assembly: NeutralResourcesLanguage("en-US")]
[assembly: InternalsVisibleTo("Splat.Tests")]
[assembly: InternalsVisibleTo("Splat.TestRunner.Android")]
[assembly: InternalsVisibleTo("Splat.TestRunner.Uwp")]
44 changes: 38 additions & 6 deletions src/Splat.TestRunner.Android/Splat.TestRunner.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
<CopyNuGetImplementations>true</CopyNuGetImplementations>
<NoStdLib>false</NoStdLib>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
<NoWarn>$(NoWarn);1591;CA1707;SA1633;CA2000;CA1034</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DefineConstants>TRACE;DEBUG;ANDROID</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime>
Expand All @@ -43,7 +44,7 @@
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>TRACE;ANDROID</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
Expand Down Expand Up @@ -100,23 +101,54 @@
<None Include="Properties\AndroidManifest.xml" />
<None Include="Assets\AboutAssets.txt" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\Splat.Tests\**\*.cs" LinkBase="..\Splat.Tests" Exclude="**\*AssemblyInfo.cs;**/obj/**/*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms">
<Version>4.*</Version>
</PackageReference>
<PackageReference Include="xunit.runner.devices">
<Version>2.*</Version>
</PackageReference>
<PackageReference Include="Xamarin.Essentials" Version="1.5.3.2" />
<PackageReference Include="Serilog.Exceptions" Version="5.6.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Splat.AppCenter\Splat.AppCenter.csproj">
<Project>{dca3c3b2-dbd1-4c92-ac3b-4de6fad598a3}</Project>
<Name>Splat.AppCenter</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.ApplicationInsights\Splat.ApplicationInsights.csproj">
<Project>{2ed64333-8b11-461e-a009-fffbfe4bd0d9}</Project>
<Name>Splat.ApplicationInsights</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.Drawing\Splat.Drawing.csproj">
<Project>{694d2813-14ff-456a-b1e7-c5bb82aee400}</Project>
<Name>Splat.Drawing</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.Tests\Splat.Tests.csproj">
<Project>{6cad2584-aa69-4a36-8ad4-a90d040003ca}</Project>
<Name>Splat.Tests</Name>
<ProjectReference Include="..\Splat.Exceptionless\Splat.Exceptionless.csproj">
<Project>{33e4d5f9-b95e-4ae6-a874-7f4a40b2005e}</Project>
<Name>Splat.Exceptionless</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.Log4Net\Splat.Log4Net.csproj">
<Project>{d65c61d8-c073-4761-9ba3-c595a079c42e}</Project>
<Name>Splat.Log4Net</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.Microsoft.Extensions.Logging\Splat.Microsoft.Extensions.Logging.csproj">
<Project>{898c7105-00af-45ec-948a-d004bcc01eb6}</Project>
<Name>Splat.Microsoft.Extensions.Logging</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.NLog\Splat.NLog.csproj">
<Project>{24bcc71a-0998-4b81-9a55-bc00c2a3f8ce}</Project>
<Name>Splat.NLog</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.Raygun\Splat.Raygun.csproj">
<Project>{a587ef52-4a3f-4375-a335-9ed7c6d410cb}</Project>
<Name>Splat.Raygun</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.Serilog\Splat.Serilog.csproj">
<Project>{75538893-9968-45f1-9c05-edb837fe0cfe}</Project>
<Name>Splat.Serilog</Name>
</ProjectReference>
<ProjectReference Include="..\Splat\Splat.csproj">
<Project>{8535bde3-25b5-41d6-bf5d-2df766ae879b}</Project>
Expand Down
53 changes: 39 additions & 14 deletions src/Splat.TestRunner.Uwp/Splat.TestRunner.Uwp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
<UnitTestPlatformVersion Condition="'$(UnitTestPlatformVersion)' == ''">$(VisualStudioVersion)</UnitTestPlatformVersion>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
<NoWarn>$(NoWarn);1591;CA1707;SA1633;CA2000;CA1034;2008</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
Expand All @@ -34,7 +34,6 @@
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
Expand All @@ -46,7 +45,6 @@
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
Expand All @@ -57,7 +55,6 @@
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
Expand All @@ -69,7 +66,6 @@
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
Expand All @@ -81,7 +77,6 @@
<OutputPath>bin\ARM64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
Expand All @@ -93,7 +88,6 @@
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
Expand All @@ -104,7 +98,6 @@
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
Expand Down Expand Up @@ -139,30 +132,63 @@
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\Splat.Tests\**\*.cs" LinkBase="..\Splat.Tests" Exclude="**\*AssemblyInfo.cs;**/obj/**/*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.9</Version>
</PackageReference>
<PackageReference Include="MSTest.TestAdapter">
<PackageReference Include="MSTest.TestAdapter">
<Version>2.1.2</Version>
</PackageReference>
<PackageReference Include="MSTest.TestFramework">
<Version>2.1.2</Version>
</PackageReference>
<PackageReference Include="xunit.runner.devices">
<Version>2.5.25</Version>
</PackageReference>
</PackageReference>
<PackageReference Include="Serilog.Exceptions" Version="5.6.0" />
</ItemGroup>
<ItemGroup>
<SDKReference Include="TestPlatform.Universal, Version=$(UnitTestPlatformVersion)" />
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Splat.AppCenter\Splat.AppCenter.csproj">
<Project>{dca3c3b2-dbd1-4c92-ac3b-4de6fad598a3}</Project>
<Name>Splat.AppCenter</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.ApplicationInsights\Splat.ApplicationInsights.csproj">
<Project>{2ed64333-8b11-461e-a009-fffbfe4bd0d9}</Project>
<Name>Splat.ApplicationInsights</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.Log4Net\Splat.Log4Net.csproj">
<Project>{d65c61d8-c073-4761-9ba3-c595a079c42e}</Project>
<Name>Splat.Log4Net</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.Microsoft.Extensions.Logging\Splat.Microsoft.Extensions.Logging.csproj">
<Project>{898c7105-00af-45ec-948a-d004bcc01eb6}</Project>
<Name>Splat.Microsoft.Extensions.Logging</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.NLog\Splat.NLog.csproj">
<Project>{24bcc71a-0998-4b81-9a55-bc00c2a3f8ce}</Project>
<Name>Splat.NLog</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.Raygun\Splat.Raygun.csproj">
<Project>{a587ef52-4a3f-4375-a335-9ed7c6d410cb}</Project>
<Name>Splat.Raygun</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.Serilog\Splat.Serilog.csproj">
<Project>{75538893-9968-45f1-9c05-edb837fe0cfe}</Project>
<Name>Splat.Serilog</Name>
</ProjectReference>
<ProjectReference Include="..\Splat\Splat.csproj">
<Project>{8535bde3-25b5-41d6-bf5d-2df766ae879b}</Project>
<Name>Splat</Name>
</ProjectReference>
<ProjectReference Include="..\Splat.Tests\Splat.Tests.csproj">
<Name>Splat.Tests</Name>
<ProjectReference Include="..\Splat.Drawing\Splat.Drawing.csproj">
<Project>{694d2813-14ff-456a-b1e7-c5bb82aee400}</Project>
<Name>Splat.Drawing</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
Expand All @@ -178,7 +204,6 @@
-->
<!-- Allow building from command line MSBuild workaround. -->
<Target Name="Pack" />

<Target Name="AddXunitTestAdapterLibs" AfterTargets="AddXunitTestAdapterLibs" BeforeTargets="_GenerateAppxManifest">
</Target>
</Project>
4 changes: 4 additions & 0 deletions src/Splat.Tests/API/ApiApprovalTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

#if !WINDOWS_UWP && !ANDROID

using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
Expand Down Expand Up @@ -87,3 +89,5 @@ private static string Filter(string text)
}
}
}

#endif
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.Text;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#if !WINDOWS_UWP
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

#if !WINDOWS_UWP

using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#if !WINDOWS_UWP
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

#if !WINDOWS_UWP

using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.Text;
using Splat.ApplicationPerformanceMonitoring;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.Text;
using Splat.ApplicationPerformanceMonitoring;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.Text;
using Splat.ApplicationPerformanceMonitoring;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#if !WINDOWS_UWP && !ANDROID
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

#if !WINDOWS_UWP && !ANDROID
using System;
using System.Collections.Generic;
using System.Text;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.Text;
using Mindscape.Raygun4Net;
Expand Down
7 changes: 6 additions & 1 deletion src/Splat.Tests/BitmapLoaderTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
Expand Down
7 changes: 6 additions & 1 deletion src/Splat.Tests/Colors/KnownColorTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
Expand Down
7 changes: 6 additions & 1 deletion src/Splat.Tests/Colors/SplatColorTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using System;
// Copyright (c) 2019 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Xunit;
Expand Down
Loading

0 comments on commit 052b859

Please sign in to comment.