Closed
Description
下記は成功を期待するテストだが、現状 PrimitiveAssert は System.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 下のコレクション型もシステム コレクションとして扱う。