diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-06-10 16:14:45 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-06-10 16:36:09 +0100 |
| commit | a1cb7b24ff9e8a0e41b7a5fa6d2fbc3c32c20bbe (patch) | |
| tree | 1bd90a66d8cc0cf2c6943015da0b31adfdba50ac /Mammoth.Tests | |
| parent | 14ac28c468ca81b645cabf21552748a46f7b21e2 (diff) | |
Update project files
Diffstat (limited to 'Mammoth.Tests')
| -rw-r--r-- | Mammoth.Tests/DocumentConverterTests.cs | 8 | ||||
| -rw-r--r-- | Mammoth.Tests/Mammoth.Tests.csproj | 61 | ||||
| -rw-r--r-- | Mammoth.Tests/Properties/AssemblyInfo.cs | 27 | ||||
| -rw-r--r-- | Mammoth.Tests/packages.config | 9 |
4 files changed, 20 insertions, 85 deletions
diff --git a/Mammoth.Tests/DocumentConverterTests.cs b/Mammoth.Tests/DocumentConverterTests.cs index 5469e08..c61ac04 100644 --- a/Mammoth.Tests/DocumentConverterTests.cs +++ b/Mammoth.Tests/DocumentConverterTests.cs @@ -98,7 +98,7 @@ namespace Mammoth.Tests { Directory.Delete(tempDirectory, recursive: true); } } - + [Fact] public void ImageConversionCanBeCustomised() { AssertSuccessfulConversion( @@ -106,7 +106,7 @@ namespace Mammoth.Tests { "<p><img src=\"iV,image/png\" /></p>" ); } - + private IDictionary<string, string> ConvertImage(IImage image) { using (var stream = image.GetStream()) { var base64 = StreamToBase64(stream); @@ -114,7 +114,7 @@ namespace Mammoth.Tests { return new Dictionary<string, string> { { "src", src } }; } } - + private static string StreamToBase64(System.IO.Stream stream) { var memoryStream = new System.IO.MemoryStream(); stream.CopyTo(memoryStream); @@ -269,7 +269,7 @@ namespace Mammoth.Tests { } private string TestFilePath(string name) { - return Path.Combine("../../TestData", name); + return Path.Combine("../../../TestData", name); } } } diff --git a/Mammoth.Tests/Mammoth.Tests.csproj b/Mammoth.Tests/Mammoth.Tests.csproj index d561dde..3cae293 100644 --- a/Mammoth.Tests/Mammoth.Tests.csproj +++ b/Mammoth.Tests/Mammoth.Tests.csproj @@ -1,55 +1,29 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <ProjectGuid>{E9C3EA8B-FF3B-4E3E-8137-1510465200B5}</ProjectGuid> - <OutputType>Library</OutputType> - <RootNamespace>Mammoth.Tests</RootNamespace> - <AssemblyName>Mammoth.Tests</AssemblyName> - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <TargetFramework>net45</TargetFramework> + <AssemblyTitle>Mammoth.Tests</AssemblyTitle> + <Copyright>Michael Williamson</Copyright> + <Deterministic>false</Deterministic> + <AssemblyVersion>1.0.*</AssemblyVersion> + <FileVersion>1.0.*</FileVersion> + <DebugType>full</DebugType> + <ConsolePause>false</ConsolePause> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - <DebugSymbols>true</DebugSymbols> - <DebugType>full</DebugType> - <Optimize>false</Optimize> <OutputPath>bin\Debug</OutputPath> <DefineConstants>DEBUG;</DefineConstants> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - <ConsolePause>false</ConsolePause> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - <DebugType>full</DebugType> - <Optimize>true</Optimize> <OutputPath>bin\Release</OutputPath> - <ErrorReport>prompt</ErrorReport> - <WarningLevel>4</WarningLevel> - <ConsolePause>false</ConsolePause> </PropertyGroup> - <ItemGroup> - <Reference Include="System" /> - <Reference Include="xunit.abstractions"> - <HintPath>..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll</HintPath> - </Reference> - <Reference Include="xunit.core"> - <HintPath>..\packages\xunit.extensibility.core.2.1.0\lib\portable-net45+win8+wp8+wpa81\xunit.core.dll</HintPath> - </Reference> - <Reference Include="xunit.execution.desktop"> - <HintPath>..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll</HintPath> - </Reference> - <Reference Include="xunit.assert"> - <HintPath>..\packages\xunit.assert.2.1.0\lib\portable-net45+win8+wp8+wpa81\xunit.assert.dll</HintPath> - </Reference> - </ItemGroup> - <ItemGroup> - <Compile Include="Properties\AssemblyInfo.cs" /> - <Compile Include="DocumentConverterTests.cs" /> - </ItemGroup> - <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="..\packages\xunit.core.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.core.props" Condition="Exists('..\packages\xunit.core.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.core.props')" /> <ItemGroup> - <None Include="packages.config" /> + <PackageReference Include="xunit" Version="2.1.0" /> + <PackageReference Include="xunit.abstractions" Version="2.0.0" /> + <PackageReference Include="xunit.assert" Version="2.1.0" /> + <PackageReference Include="xunit.core" Version="2.1.0" /> + <PackageReference Include="xunit.extensibility.core" Version="2.1.0" /> + <PackageReference Include="xunit.extensibility.execution" Version="2.1.0" /> </ItemGroup> <ItemGroup> <EmbeddedResource Include="TestData\empty.docx" /> @@ -69,9 +43,6 @@ <EmbeddedResource Include="TestData\utf8-bom.docx" /> </ItemGroup> <ItemGroup> - <ProjectReference Include="..\Mammoth\Mammoth.csproj"> - <Project>{51C5CBD6-8809-4D5E-BABE-1787A16F5ED8}</Project> - <Name>Mammoth</Name> - </ProjectReference> + <ProjectReference Include="..\Mammoth\Mammoth.csproj" /> </ItemGroup> </Project>
\ No newline at end of file diff --git a/Mammoth.Tests/Properties/AssemblyInfo.cs b/Mammoth.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index 79596a3..0000000 --- a/Mammoth.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// Information about this assembly is defined by the following attributes. -// Change them to the values specific to your project. - -[assembly: AssemblyTitle ("Mammoth.Tests")] -[assembly: AssemblyDescription ("")] -[assembly: AssemblyConfiguration ("")] -[assembly: AssemblyCompany ("")] -[assembly: AssemblyProduct ("")] -[assembly: AssemblyCopyright ("Michael Williamson")] -[assembly: AssemblyTrademark ("")] -[assembly: AssemblyCulture ("")] - -// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". -// The form "{Major}.{Minor}.*" will automatically update the build and revision, -// and "{Major}.{Minor}.{Build}.*" will update just the revision. - -[assembly: AssemblyVersion ("1.0.*")] - -// The following attributes are used to specify the signing key for the assembly, -// if desired. See the Mono documentation for more information about signing. - -//[assembly: AssemblyDelaySign(false)] -//[assembly: AssemblyKeyFile("")] - diff --git a/Mammoth.Tests/packages.config b/Mammoth.Tests/packages.config deleted file mode 100644 index 69a4ec4..0000000 --- a/Mammoth.Tests/packages.config +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<packages> - <package id="xunit" version="2.1.0" targetFramework="net45" /> - <package id="xunit.abstractions" version="2.0.0" targetFramework="net45" /> - <package id="xunit.assert" version="2.1.0" targetFramework="net45" /> - <package id="xunit.core" version="2.1.0" targetFramework="net45" /> - <package id="xunit.extensibility.core" version="2.1.0" targetFramework="net45" /> - <package id="xunit.extensibility.execution" version="2.1.0" targetFramework="net45" /> -</packages>
\ No newline at end of file |
