Browse Source

Fix up ics.d.tests to look like a File New/NUnit project

pull/2642/head
Christoph Wille 3 years ago
parent
commit
b5b7396270
  1. 16
      ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
  2. 30
      ICSharpCode.Decompiler.Tests/Stub.cs
  3. 7
      packages.props

16
ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj

@ -3,17 +3,16 @@ @@ -3,17 +3,16 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<StartupObject>AutoGeneratedProgram</StartupObject>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<NoWarn>1701;1702;1705,67,169,1058,728,1720,649,168,251,660,661,675</NoWarn>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<EnableDefaultItems>false</EnableDefaultItems>
<OutputType>Exe</OutputType>
<StartupObject>ICSharpCode.Decompiler.Tests.Stub</StartupObject>
<AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects>
<SignAssembly>True</SignAssembly>
@ -50,6 +49,7 @@ @@ -50,6 +49,7 @@
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic" Version="$(RoslynVersion)" />
<PackageReference Include="Microsoft.DiaSymReader.Converter.Xml" Version="$(DSRConverterXmlVersion)" />
<PackageReference Include="NUnit3TestAdapter" Version="$(NUnitAdapterVersion)" />
<PackageReference Include="coverlet.collector" Version="$(CoverletCollectorVersion)" />
<PackageReference Include="NUnit" Version="$(NUnitVersion)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkVersion)" />
<PackageReference Include="System.Memory" Version="4.5.4" />
@ -242,7 +242,6 @@ @@ -242,7 +242,6 @@
<Compile Include="Helpers\Tester.cs" />
<Compile Include="Helpers\Tester.VB.cs" />
<Compile Include="ILPrettyTestRunner.cs" />
<Compile Include="Stub.cs" />
<Compile Include="TestCases\Correctness\Loops.cs" />
<Compile Include="TestCases\Correctness\NullableTests.cs" />
<Compile Include="TestCases\Correctness\TrickyTypes.cs" />
@ -319,13 +318,4 @@ @@ -319,13 +318,4 @@
<None Include="TestCases\VBPretty\VBPropertiesTest.vb" />
</ItemGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.VisualBasic" />
</ItemGroup>
<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>

30
ICSharpCode.Decompiler.Tests/Stub.cs

@ -1,30 +0,0 @@ @@ -1,30 +0,0 @@
// Copyright (c) 2016 Daniel Grunwald
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.Decompiler.Tests
{
class Stub
{
static void Main(string[] args)
{
throw new InvalidOperationException("Entry point exists only to support output type 'Exe'");
}
}
}

7
packages.props

@ -9,13 +9,16 @@ @@ -9,13 +9,16 @@
<SystemReflectionMetadataVersion>5.0.0</SystemReflectionMetadataVersion>
<SystemCompilerServicesUnsafeVersion>5.0.0</SystemCompilerServicesUnsafeVersion>
<SystemCompositionVersion>5.0.1</SystemCompositionVersion>
<ILAsmVersion>5.0.0</ILAsmVersion> <!-- Microsoft.NETCore.ILAsm -->
<RoslynVersion>4.0.1</RoslynVersion> <!-- Microsoft.CodeAnalysis.* -->
<!-- Microsoft.NETCore.ILAsm -->
<ILAsmVersion>5.0.0</ILAsmVersion>
<!-- Microsoft.CodeAnalysis.* -->
<RoslynVersion>4.0.1</RoslynVersion>
<MonoCecilVersion>0.11.4</MonoCecilVersion>
<AvalonEditVersion>6.1.3.50</AvalonEditVersion>
<WpfStylesToolboxVersion>2.7.4</WpfStylesToolboxVersion>
<NUnitVersion>3.13.2</NUnitVersion>
<NUnitAdapterVersion>4.2.1</NUnitAdapterVersion>
<CoverletCollectorVersion>3.1.2</CoverletCollectorVersion>
<MicrosoftNETTestSdkVersion>17.0.0</MicrosoftNETTestSdkVersion>
<MoqVersion>4.16.1</MoqVersion>
<DiffLibVersion>2017.7.26.1241</DiffLibVersion>

Loading…
Cancel
Save