Skip to content

IEnumerable<T> collections aren't enumerated for comparison. #2

@martaver

Description

@martaver

Given:

public IEnumerable<int> GetInts() 
{
    yield return 1;
    yield return 2;
    yield return 3;
}

and the test:

GetInts().ShouldLookLike(new [] { 1, 2, 3, 4 });

The test should throw an exception, but doesn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions