Skip to content

Commit bd1d8c0

Browse files
authored
move back to System.Collections.Immutable 8 (#181)
1 parent 6789c56 commit bd1d8c0

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<PropertyGroup>
44
<NoWarn>CS1591;CS0649;NU5119</NoWarn>
5-
<Version>8.5.1</Version>
5+
<Version>8.6.0</Version>
66
<LangVersion>preview</LangVersion>
77
<AssemblyVersion>1.0.0</AssemblyVersion>
88
<Description>A collection of minimal binary files.</Description>

src/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PackageVersion Include="NUnit3TestAdapter" Version="4.6.0" />
1111
<PackageVersion Include="Polyfill" Version="7.5.0" />
1212
<PackageVersion Include="ProjectDefaults" Version="1.0.147" />
13-
<PackageVersion Include="System.Collections.Immutable" Version="9.0.0" />
13+
<PackageVersion Include="System.Collections.Immutable" Version="8.0.0" />
1414
<PackageVersion Include="System.Memory" Version="4.6.0" />
1515
</ItemGroup>
1616
</Project>

src/Tests/GlobalUsings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
global using EmptyFiles;
2-
global using NUnit.Framework;
2+
global using NUnit.Framework;
3+
global using System.Collections.Immutable;

src/Tests/ImmutableVersionTests.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#if NETFRAMEWORK
2+
3+
public class ImmutableVersionTests
4+
{
5+
// work around https://github.com/orgs/VerifyTests/discussions/1366
6+
[Test]
7+
public void AssertVersion()
8+
{
9+
var assemblyName = typeof(ImmutableDictionary).Assembly.GetName();
10+
AreEqual(new Version(8, 0, 0, 0), assemblyName.Version);
11+
}
12+
}
13+
14+
#endif

src/Tests/IndexWriter.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
public class IndexWriter
1+
#if NET9_0
2+
public class IndexWriter
23
{
34
static List<KeyValuePair<string, EmptyFile>> files = null!;
45

@@ -7,7 +8,6 @@ public static void Init() =>
78
files = AllFiles
89
.Files.OrderBy(_ => _.Key)
910
.ToList();
10-
1111
[Test]
1212
public void CreateIndex() =>
1313
InnerCreateIndex();
@@ -27,4 +27,5 @@ static void InnerCreateIndex([CallerFilePath] string filePath = "")
2727
File.Copy(value.Path, Path.Combine(indexPath, $"empty{key}"));
2828
}
2929
}
30-
}
30+
}
31+
#endif

0 commit comments

Comments
 (0)