Skip to content

Commit

Permalink
Merge pull request #29 from in-async/release/v0.7.1
Browse files Browse the repository at this point in the history
Release/v0.7.1
  • Loading branch information
in-async authored Jun 23, 2021
2 parents 359a189 + 9a55f38 commit d95149c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Inasync.PrimitiveAssert.Tests/IssueTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Expand Down Expand Up @@ -177,5 +178,17 @@ public void Issue24_Test() {
new ConcurrentQueue<int>(new[] { 1, 2 }).AssertIs(new[] { 1, 2 });
new ConcurrentStack<int>(new[] { 1, 2 }).AssertIs(new[] { 2, 1 });
}

[TestMethod]
public void Issue27_Test() {
new ReadOnlyCollection<int>(new[] { 1, 2, }).AssertIs(new[] { 1, 2, });
new ReadOnlyDictionary<int, string>(new Dictionary<int, string> {
{ 1, "a" },
{ 2, "b" },
}).AssertIs(new Dictionary<int, string> {
{ 1, "a" },
{ 2, "b" },
});
}
}
}
2 changes: 1 addition & 1 deletion Inasync.PrimitiveAssert/Inasync.PrimitiveAssert.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageProjectUrl>https://github.com/in-async/PrimitiveAssert</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/in-async/PrimitiveAssert/blob/master/LICENSE</PackageLicenseUrl>
<PackageTags>library test unittest assert deep</PackageTags>
<Version>0.7.0</Version>
<Version>0.7.1</Version>
</PropertyGroup>

</Project>
2 changes: 2 additions & 0 deletions Inasync.PrimitiveAssert/Internals/TypeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public static bool IsPrimitiveData(this Type type) {
/// <see cref="System.Collections.Generic"/>,
/// <see cref="System.Collections.Concurrent"/>,
/// <see cref="System.Linq"/>,
/// <see cref="System.Collections.ObjectModel"/>
/// のいずれかの名前空間に属する <see cref="IEnumerable"/> 実装を指します。
/// </para>
/// </summary>
Expand All @@ -59,6 +60,7 @@ public static bool IsSystemCollection(this Type type) {
"System.Collections.Generic" => true,
"System.Collections.Concurrent" => true,
"System.Linq" => true,
"System.Collections.ObjectModel" => true,
_ => false,
};
}
Expand Down

0 comments on commit d95149c

Please sign in to comment.