question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a shorter version of A<T>.That.Matches(...)

See original GitHub issue

A<int>.That.Matches(i => i == 13) is quite long for checking against a single value. As far as my testing has gone, I rarely test against something that is not specific, so I am suggesting to add another helper to be able to write A<int>.That.Is(13)

A<T>.That.Is<T>(T value)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Mertschcommented, May 11, 2016

@blairconrad Cool, very handy stuff. FakeItEasy just became even more awesome for me 😃

1reaction
adamralphcommented, May 11, 2016

Lol - of course! 😊

@Mertsch you don’t need to use A<int> at all, so instead of:

A.CallTo(() => foo.Bar(A<int>.That.IsEqualTo(13)))...

just write:

A.CallTo(() => foo.Bar(13))...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Should You Include the Same Keyword with All Match ...
Hard evidence seems to be lacking for one view or another, but is adding all these match types ever necessary? If you have...
Read more >
69 Synonyms & Antonyms for MATCH
On this page you'll find 235 synonyms, antonyms, and words related to match, such as: bout, contest, event, game, race, and test.
Read more >
OneLook Thesaurus and Reverse Dictionary
A powerful English thesaurus and brainstorming tool that lets you describe what you're looking for in plain terms. It gives you hundreds of...
Read more >
Add and format text
Learn how to add and format text, and copy that formatting to other areas of your documents.
Read more >
Match Cuts & Creative Transitions with Examples
What is a match cut? We'll explain how to plan and shoot different match cut transitions based on graphics, audio, and movement.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found