Skip to content

Commit 580d736

Browse files
committed
modernize test project
1 parent 9a8656f commit 580d736

File tree

3 files changed

+18
-117
lines changed

3 files changed

+18
-117
lines changed

test/SocketLabs.Test/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 18 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,27 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="..\..\packages\MSTest.TestAdapter.2.2.8\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\..\packages\MSTest.TestAdapter.2.2.8\build\net45\MSTest.TestAdapter.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{C6E1FF08-07E8-47A9-B04B-F2F91468F045}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>SocketLabs.Test</RootNamespace>
11-
<AssemblyName>SocketLabs.Test</AssemblyName>
12-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
15-
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
16-
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
17-
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
3+
<RootNamespace>SocketLabs.Tests</RootNamespace>
4+
<AssemblyName>SocketLabs.Tests</AssemblyName>
5+
<TargetFramework>net6.0</TargetFramework>
186
<IsCodedUITest>False</IsCodedUITest>
197
<TestProjectType>UnitTest</TestProjectType>
20-
<NuGetPackageImportStamp>
21-
</NuGetPackageImportStamp>
22-
<TargetFrameworkProfile />
8+
<AssemblyTitle>SocketLabs.Tests</AssemblyTitle>
9+
<Product>SocketLabs.Tests</Product>
10+
<Copyright>Copyright © 2018-2022 SocketLabs Acquisition LLC</Copyright>
2311
</PropertyGroup>
24-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
25-
<DebugSymbols>true</DebugSymbols>
26-
<DebugType>full</DebugType>
27-
<Optimize>false</Optimize>
28-
<OutputPath>bin\Debug\</OutputPath>
29-
<DefineConstants>DEBUG;TRACE</DefineConstants>
30-
<ErrorReport>prompt</ErrorReport>
31-
<WarningLevel>4</WarningLevel>
32-
</PropertyGroup>
33-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
34-
<DebugType>pdbonly</DebugType>
35-
<Optimize>true</Optimize>
36-
<OutputPath>bin\Release\</OutputPath>
37-
<DefineConstants>TRACE</DefineConstants>
38-
<ErrorReport>prompt</ErrorReport>
39-
<WarningLevel>4</WarningLevel>
40-
</PropertyGroup>
41-
<PropertyGroup Condition="'$(TeamCitySignAssembly)' != ''">
42-
<SignAssembly>true</SignAssembly>
43-
<DelaySign>false</DelaySign>
44-
</PropertyGroup>
45-
<ItemGroup>
46-
<Reference Include="Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
47-
<HintPath>..\..\packages\Castle.Core.4.4.1\lib\net45\Castle.Core.dll</HintPath>
48-
</Reference>
49-
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
50-
<HintPath>..\..\packages\MSTest.TestFramework.2.2.8\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
51-
</Reference>
52-
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
53-
<HintPath>..\..\packages\MSTest.TestFramework.2.2.8\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
54-
</Reference>
55-
<Reference Include="Moq, Version=4.16.0.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
56-
<HintPath>..\..\packages\Moq.4.16.1\lib\net45\Moq.dll</HintPath>
57-
</Reference>
58-
<Reference Include="System" />
59-
<Reference Include="System.Configuration" />
60-
<Reference Include="System.Core" />
61-
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
62-
<HintPath>..\..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
63-
</Reference>
64-
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
65-
<HintPath>..\..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
66-
</Reference>
67-
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
68-
<HintPath>..\..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll</HintPath>
69-
</Reference>
70-
</ItemGroup>
71-
<ItemGroup>
72-
<Compile Include="Helper\RandomHelper.cs" />
73-
<Compile Include="Properties\AssemblyInfo.cs" />
74-
<Compile Include="Validation\SendValidatorTest.cs" />
75-
</ItemGroup>
7612
<ItemGroup>
77-
<None Include="packages.config" />
13+
<PackageReference Include="Castle.Core" Version="4.4.1" />
14+
<PackageReference Include="Moq" Version="4.16.1" />
15+
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
16+
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
17+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
18+
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
19+
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
20+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
21+
<PackageReference Include="MSTest.TestAdapter" Version="1.4.0" />
22+
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
7823
</ItemGroup>
7924
<ItemGroup>
80-
<ProjectReference Include="..\..\src\SocketLabs\SocketLabs.csproj">
81-
<Project>{5fe88690-970a-4b7c-a8e9-bd8ff42fa01b}</Project>
82-
<Name>SocketLabs</Name>
83-
</ProjectReference>
25+
<ProjectReference Include="..\..\src\SocketLabs\SocketLabs.csproj" />
8426
</ItemGroup>
85-
<ItemGroup />
86-
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
87-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
88-
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
89-
<PropertyGroup>
90-
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
91-
</PropertyGroup>
92-
<Error Condition="!Exists('..\..\packages\MSTest.TestAdapter.2.2.8\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MSTest.TestAdapter.2.2.8\build\net45\MSTest.TestAdapter.props'))" />
93-
<Error Condition="!Exists('..\..\packages\MSTest.TestAdapter.2.2.8\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MSTest.TestAdapter.2.2.8\build\net45\MSTest.TestAdapter.targets'))" />
94-
</Target>
95-
<Import Project="..\..\packages\MSTest.TestAdapter.2.2.8\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\..\packages\MSTest.TestAdapter.2.2.8\build\net45\MSTest.TestAdapter.targets')" />
9627
</Project>

test/SocketLabs.Test/packages.config

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

0 commit comments

Comments
 (0)