Skip to content

Commit 48a33b8

Browse files
committed
Fix tests
1 parent 78f389f commit 48a33b8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/ThisAssembly.Tests/Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public void CanUseFileConstants()
1515

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

2020
[Fact]
2121
public void CanUseMetadata()

src/ThisAssembly.Tests/ThisAssembly.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true'">net472</TargetFramework>
66
<RootNamespace>ThisAssemblyTests</RootNamespace>
77
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
@@ -48,12 +48,12 @@
4848
<Constant Include="Foo.Bar" Value="Baz" Comment="Yay!" />
4949
<Constant Include="Foo.Hello" Value="World" Comment="Comments make everything better 😍" />
5050
<FileConstant Include="@(None)" />
51-
<AssemblyMetadata Include="Foo" Value="Bar" />
52-
<FileConstant Update="@(FileConstant -> WithMetadataValue('Filename', 'icon'))">
53-
<Link>Included/icon.png</Link>
51+
<FileConstant Update="@(FileConstant -&gt; WithMetadataValue('Filename', 'Readme'))">
52+
<Link>Included/%(Filename)%(Extension)</Link>
5453
</FileConstant>
54+
<AssemblyMetadata Include="Foo" Value="Bar" />
5555
</ItemGroup>
56-
56+
5757
<Target Name="GetDependencyTargetPaths" Returns="@(TargetPathWithTargetPlatformMoniker)">
5858
<ItemGroup>
5959
<!--<TargetPathWithTargetPlatformMoniker Include="$(PKGCsvTextFieldParser)\lib\netstandard2.0\CsvTextFieldParser.dll" IncludeRuntimeDependency="false" />

0 commit comments

Comments
 (0)