Skip to content

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

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 側のランタイム型との等値アサートを指示する感じ。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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