Skip to content

expected に型の等値アサートも含められるようにしたい #13

@in-async

Description

@in-async

こういうの:

class Foo { }
class Bar { }

...

var actual = new Foo();

actual.AssertIs(new { GetType = typeof(Foo) });  // 成功
actual.AssertIs(new { GetType = typeof(Boo) });  // 失敗

actual.AssertIs(new { });  // ちな従来のやつ。もち成功

GetType とか適当な予約語によって、actual 側のランタイム型との等値アサートを指示する感じ。

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions