Browse Source

Added test project and test file

Piotr Czajkowski 3 years ago
parent
commit
8a6b54efae

+ 6 - 0
PSDText/PSDText.sln

@@ -5,6 +5,8 @@ VisualStudioVersion = 16.0.30204.135
 MinimumVisualStudioVersion = 10.0.40219.1
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PSDText", "PSDText.csproj", "{10FBABA1-F50D-4730-8E15-36ACF1807C0C}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PSDTextTests", "..\PSDTextTests\PSDTextTests.csproj", "{A8F33A0B-F520-4105-9582-79F03251F952}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -15,6 +17,10 @@ Global
 		{10FBABA1-F50D-4730-8E15-36ACF1807C0C}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{10FBABA1-F50D-4730-8E15-36ACF1807C0C}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{10FBABA1-F50D-4730-8E15-36ACF1807C0C}.Release|Any CPU.Build.0 = Release|Any CPU
+		{A8F33A0B-F520-4105-9582-79F03251F952}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{A8F33A0B-F520-4105-9582-79F03251F952}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{A8F33A0B-F520-4105-9582-79F03251F952}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{A8F33A0B-F520-4105-9582-79F03251F952}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

+ 13 - 0
PSDTextTests/PSDTextTests.cs

@@ -0,0 +1,13 @@
+using Xunit;
+
+namespace PSDTextTests
+{
+    public class PSDTextTests
+    {
+        [Fact]
+        public void Test1()
+        {
+
+        }
+    }
+}

+ 30 - 0
PSDTextTests/PSDTextTests.csproj

@@ -0,0 +1,30 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <TargetFramework>netcoreapp3.1</TargetFramework>
+
+    <IsPackable>false</IsPackable>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
+    <PackageReference Include="xunit" Version="2.4.0" />
+    <PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
+    <PackageReference Include="coverlet.collector" Version="1.2.0" />
+  </ItemGroup>
+
+  <ItemGroup>
+    <ProjectReference Include="..\PSDText\PSDText.csproj" />
+  </ItemGroup>
+
+  <ItemGroup>
+    <Folder Include="testFiles\" />
+  </ItemGroup>
+
+  <ItemGroup>
+    <None Update="testFiles\test.psd">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
+  </ItemGroup>
+
+</Project>

BIN
PSDTextTests/testFiles/test.psd