Skip to content

System.Linq 下のコレクション型がシステム コレクション扱いになっていない #20

Closed
@in-async

Description

@in-async

下記は成功を期待するテストだが、現状 PrimitiveAssertSystem.Collections 及び System.Collections.Generic 下のコレクション型のみをシステム コレクションとして扱っており、OrderBy() 拡張メソッドが返す IOrderedEnumerable<T> は System.Linq 下であるため複合型扱いされている。

var actual = new[] { 1, 3, 2 }.OrderBy(x => x);

actual.AssertIs(new[] { 1, 2, 3 });  // Inasync.PrimitiveAssertFailedException: : expected に実装されているデータ メンバー 'Length', 'LongLength', 'Rank', 'SyncRoot', 'IsReadOnly', 'IsFixedSize', 'IsSynchronized' がターゲット型に存在しません。

対応

System.Linq 下のコレクション型もシステム コレクションとして扱う。

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions