-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate the unit tests to the Visual Studio 2017 project system and MSTest v2.
- Loading branch information
1 parent
6bbb2fb
commit bf11aec
Showing
9 changed files
with
27 additions
and
201 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
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
200 changes: 17 additions & 183 deletions
200
src/SqlLocalDb.UnitTests/System.Data.SqlLocalDb.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 |
---|---|---|
@@ -1,194 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="..\..\SqlLocalDb.Common.props" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion> | ||
</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{AA95196F-ADCA-4FF8-A52D-53B1E24DF81F}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<Description>Tests for System.Data.SqlLocalDb.</Description> | ||
<PreserveCompilationContext>true</PreserveCompilationContext> | ||
<RootNamespace>System.Data.SqlLocalDb</RootNamespace> | ||
<AssemblyName>System.Data.SqlLocalDb.UnitTests</AssemblyName> | ||
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<SccProjectName>SAK</SccProjectName> | ||
<SccLocalPath>SAK</SccLocalPath> | ||
<SccAuxPath>SAK</SccAuxPath> | ||
<SccProvider>SAK</SccProvider> | ||
<TargetFrameworkProfile /> | ||
<TargetFramework>net451</TargetFramework> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" /> | ||
<Reference Include="Moq, Version=4.2.1502.911, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>..\packages\Moq.4.2.1502.0911\lib\net40\Moq.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.configuration" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Data.Entity" /> | ||
<Reference Include="System.XML" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> | ||
<Visible>False</Visible> | ||
</CodeAnalysisDependentAssemblyPaths> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="..\AssemblyVersion.cs"> | ||
<Link>AssemblyVersion.cs</Link> | ||
</Compile> | ||
<Compile Include="..\CommonAssemblyInfo.cs"> | ||
<Link>CommonAssemblyInfo.cs</Link> | ||
</Compile> | ||
<Compile Include="Configuration\SqlLocalDbConfigurationSectionTests.cs" /> | ||
<Compile Include="ErrorAssert.cs" /> | ||
<Compile Include="ExtensionsTests.cs" /> | ||
<Compile Include="Helpers.cs" /> | ||
<Compile Include="IntegrationTests.cs" /> | ||
<Compile Include="LoggerTests.cs" /> | ||
<Compile Include="NativeMethodsTests.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="SqlLocalDbApiTests.cs" /> | ||
<Compile Include="SqlLocalDbConfigTests.cs" /> | ||
<Compile Include="SqlLocalDbExceptionTests.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="SqlLocalDbProviderTests.cs" /> | ||
<Compile Include="SqlLocalDbInstanceTests.cs" /> | ||
<Compile Include="SRHelperTests.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="TemporarySqlLocalDbInstanceTests.cs" /> | ||
<Compile Include="TestCategories.cs" /> | ||
<Compile Include="EmptyLogger.cs" /> | ||
<Compile Include="TestSetup.cs" /> | ||
<Compile Include="TraceSourceLoggerTests.cs" /> | ||
<Compile Include="..\..\CommonAssemblyInfo.cs" /> | ||
<None Include=".\*.config;.\Configuration\*.config;.\*.xml" CopyToOutputDirectory="PreserveNewest" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\SqlLocalDb\System.Data.SqlLocalDb.csproj"> | ||
<Project>{B235F2A6-A8A2-4CE6-B3B0-54FFB89DE7DD}</Project> | ||
<Name>System.Data.SqlLocalDb</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\SqlLocalDb\System.Data.SqlLocalDb.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\AssemblyVersion.targets"> | ||
<Link>AssemblyVersion.targets</Link> | ||
</None> | ||
<None Include="..\SqlLocalDb.Common.targets"> | ||
<Link>SqlLocalDb.Common.targets</Link> | ||
</None> | ||
<None Include="app.config"> | ||
<SubType>Designer</SubType> | ||
</None> | ||
<None Include="Empty.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="Configuration\SqlLocalDbConfigurationSectionTests.DefinedAndSpecified.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="Configuration\SqlLocalDbConfigurationSectionTests.DefinedButNotSpecified.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="ExtensionsTests.MultipleConnectionStrings.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="ExtensionsTests.NoConnectionStrings.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="LoggerTests.CustomLoggerType.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="packages.config"> | ||
<SubType>Designer</SubType> | ||
</None> | ||
<None Include="SqlLocalDbApiTests.AutomaticallyDeleteInstanceFiles.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="SqlLocalDbApiTests.DefaultInstanceName.2012.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="SqlLocalDbApiTests.DefaultInstanceName.2016.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="SqlLocalDbApiTests.DefaultInstanceName.2014.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="SqlLocalDbApiTests.InvalidOverrideVersion.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="SqlLocalDbApiTests.PropertiesOverridden.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="SqlLocalDbConfigTests.DefinedAndSpecified.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="SqlLocalDbConfigTests.DefinedAndSpecifiedWithLegacySettings.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="SqlLocalDbConfigTests.DefinedButNotSpecified.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="SqlLocalDbConfigTests.DefinedButNotSpecifiedWithLegacySettings.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="TraceSourceLoggerTests.AllDisabled.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="TraceSourceLoggerTests.AllEnabled.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="TraceSourceLoggerTests.SomeDisabled.config"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<Reference Include="System.Configuration" /> | ||
<Reference Include="System.Data.Entity" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" /> | ||
<PackageReference Include="MSTest.TestAdapter" Version="1.1.14" /> | ||
<PackageReference Include="MSTest.TestFramework" Version="1.1.14" /> | ||
<PackageReference Include="Moq" Version="4.7.8" /> | ||
<PackageReference Include="StyleCop.Analyzers" Version="1.0.0" PrivateAssets="All" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<CodeAnalysisDictionary Include="..\FxCopDictionary.xml"> | ||
<Link>FxCopDictionary.xml</Link> | ||
</CodeAnalysisDictionary> | ||
<None Include="GetPhysicalFileNameTestCases.xml"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<SubType>Designer</SubType> | ||
</None> | ||
<None Include="SetPhysicalFileNameTestCases.xml"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="SetInitialCatalogNameTestCases.xml"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="GetInitialCatalogNameTestCases.xml"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<Import Project="$(SolutionDir)SqlLocalDb.Common.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> | ||
</Project> |
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 was deleted.
Oops, something went wrong.
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