-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
// CS1503
// 引数 1: は 'string[]' から 'System.Action<System.Linq.IOrderedEnumerable<string>>' へ
// 変換することはできません。
TestAA
.Act(() => new[] { "foo", "bar" }.OrderBy(x => x))
.Assert(@return: new[] { "foo", "bar" });
// OK
TestAA
.Act<string>(() => new[] { "foo", "bar" }.OrderBy(x => x))
.Assert(@return: new[] { "foo", "bar" });
// CS1662
// デリゲート戻り値の型に暗黙的に変換できない戻り値の型がブロック内にあるため、
// ラムダ式 を目的のデリゲート型に変換できません。
TestAA
.Act<string>(() => Task.FromResult(new[] { "foo", "bar" }.OrderBy(x => x)))
.Assert(@return: new[] { "foo", "bar" });Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request