-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
この API の追加を検討:
public partial struct TestActual {
public void Assert(Action @return, Action<Exception> exception) {
if (@return == null) { throw new ArgumentNullException(nameof(@return)); }
if (exception == null) { throw new ArgumentNullException(nameof(exception)); }
exception(Exception);
if (Exception == null) {
@return();
}
}
}動機
正常終了時 (非例外時) にのみ追加アサートしたいケースのカバー。
その追加アサートは本当は例外時にも検証すべきだと思うので悩む。
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request