Skip to content

as developer I wan to to compare objects with deep compare logic, so that I can simplify tests #7

Description

@dvabuzyarov

Consider case like this one:

class SomeAction {
}

scheduler.ExpectObservable(testedObserver).ToBe("a", new {a = new SomeAction()});

this assertion will fail, but it is very convenient to compare object with deep compare logic.
It would be nice if you can introduce an optional parameter that could be of type Func<object, object, bool>, so that I can implement my compare logic.

class SomeAction {
}

scheduler.ExpectObservable(testedObserver).ToBe("a", new {a = new SomeAction()}, (actual, expected) => Comparer.AreEqual(actual, expected));

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