Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Feb 22, 2022
1 parent 78f389f commit 48a33b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ThisAssembly.Tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void CanUseFileConstants()

[Fact]
public void CanUseFileConstantLinkedFile()
=> Assert.Equal(Path.Combine("Included", "icon.png"), ThisAssembly.Constants.Included.icon);
=> Assert.Equal(Path.Combine("Included", "Readme.txt"), ThisAssembly.Constants.Included.Readme);

[Fact]
public void CanUseMetadata()
Expand Down
10 changes: 5 additions & 5 deletions src/ThisAssembly.Tests/ThisAssembly.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true'">net472</TargetFramework>
<RootNamespace>ThisAssemblyTests</RootNamespace>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
Expand Down Expand Up @@ -48,12 +48,12 @@
<Constant Include="Foo.Bar" Value="Baz" Comment="Yay!" />
<Constant Include="Foo.Hello" Value="World" Comment="Comments make everything better 😍" />
<FileConstant Include="@(None)" />
<AssemblyMetadata Include="Foo" Value="Bar" />
<FileConstant Update="@(FileConstant -> WithMetadataValue('Filename', 'icon'))">
<Link>Included/icon.png</Link>
<FileConstant Update="@(FileConstant -&gt; WithMetadataValue('Filename', 'Readme'))">
<Link>Included/%(Filename)%(Extension)</Link>
</FileConstant>
<AssemblyMetadata Include="Foo" Value="Bar" />
</ItemGroup>

<Target Name="GetDependencyTargetPaths" Returns="@(TargetPathWithTargetPlatformMoniker)">
<ItemGroup>
<!--<TargetPathWithTargetPlatformMoniker Include="$(PKGCsvTextFieldParser)\lib\netstandard2.0\CsvTextFieldParser.dll" IncludeRuntimeDependency="false" />
Expand Down

0 comments on commit 48a33b8

Please sign in to comment.