Shortcut for "ignore all arguments" when using A.CallTo. Again after 5 years.
See original GitHub issue[Edit by @blaiconrad: Previous issue (#287 - “Shortcut for “ignore all arguments” when using A.CallTo”) from 2016 is not current available due to some GitHub server error)]
Maybe technology from 2021 allows to implement this? It would be great to replace
A.CallTo(() => varDefDataReader.ReadVarDefItems(
A<string>.Ignored, A<VisibleVariables>.Ignored, A<List<VarDefTreeItem>>.Ignored,
A<string>.Ignored, A<CancellationToken>.Ignored))
.Returns(varDefItemsPage);
with
A.CallTo(() => varDefDataReader.ReadVarDefItems(A.AllIgnored).Returns(varDefItemsPage);
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Shortcut to delete command but keep arguments
Shortcut to delete command but keep arguments · 1. You can save all the right arrow movements after Ctrl+A with one Alt-D –...
Read more >What is keyboard shortcut for Spelling > Ignore All?
In Word, I can find keyboard shortcuts by pressing the Alt key. It then displays shortcut keys to the various parts of the...
Read more >python - How to properly ignore exceptions
If you definitely want to ignore all errors, catch Exception rather than a bare except: statement. Again, why?
Read more >How to prevent the command prompt from closing after ...
I have a solution which can only apply on .cmd and .bat files: Open regedit and go to each one of:
Read more >The 10 Most Common Mistakes in C# Programming
Don't fall into one of these C# programming mistakes that even savvy developers can find problematic. Read on to see all 10.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have implemented the following:
And I use as follows:
It doens’t have full intellisense, but it works
That’s why I like to use
default
instead ofnull
, because it works for any type.You can use
null!
ordefault!
. That’s usually not a good idea because it’s literally saying “null is not null”, but in this case I think it’s OK, as it’s just a placeholder.