Skip to content

Improve expressions for failure cases #14

Description

@laingsimon

Expressions that are shown in textual format for unmatched calls are unclear and clunky, look to see if they can be improved.

Current c => c.Query<Car>(Match.Create<String>(, () => ""incorrect sql""), It.IsAny<Object>(), It.IsAny<IDbTransaction>(), True, null, null)

Example (as also shown by Moq)

MockDatabase.Query<Car>(""select * 
from [Cars] 
order by Make, Model"", <No command parameters>, null, True, null, null)

See FailureMessages.cs

It may not be possible, because Match.Create() is required to permit the flexible comparison on SQL text and the parameters object.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions