Skip to content

辞書型の AssertIs が意図せず失敗する #28

Description

@in-async

下記は成功してほしいが:

new Dictionary<int, string> {
    { 1, "a" },
    { 2, "b" },
}.AssertIs(new Dictionary<int, string> {
    { 2, "b" },
    { 1, "a" },
});

実際はこうなる:

Test method Inasync.Tests.IssueTests.Issue28_Test threw exception: 
Inasync.PrimitiveAssertFailedException: : actual と expected は数値型として等しくありません。
{
      path: actual/[0]:KeyValuePair<Int32, String>/Key:Int32
    target: typeof(Int32)
    actual: 1
  expected: 2
}

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions