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.

Remove Unnatural fakes

See original GitHub issue
var fake = new Fake<IFoo>();
fake.CallsTo(x => x.Bar("some argument")).Returns("some return value");

var foo = fake.FakeObject;

I’m guessing that almost no one uses them and this is just cruft in our code base.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
adamralphcommented, Jun 21, 2016

Fair enough, but I also don’t want to carry stuff around forever if it’s never used. It’s a poor syntax compared to A so I think we should discourage it by deprecating in 2.x by adding [Obsolete].

If, after it’s been deprecated for a while, we’ve heard no complaints, that pretty much clears the way for us to remove in 3.0.

0reactions
adamralphcommented, Jun 21, 2016

Ah, I see what you mean know - in the context of something like AutoFakeItEasy injecting in either fakes or real objects are arguments to tests.

Fair enough, I’m convinced that we should keep Fake<T>.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you quickly remove a fake tan?
The quickest way to remove a fake tan is by using a product specifically formulated to remove self-tanners, such as an exfoliating scrub...
Read more >
Fighting deepfakes when detection fails
A range of papers have discovered telltale signs of deepfakes, including unnatural blinking patterns, distortion in facial features, 9 ...
Read more >
11 Ways to Easily Identify Manipulated Images
Can't tell if a photo is fake or real? These methods will help you identify manipulated photos just by looking at them.
Read more >
How to Remove Self Tanner Streaks - 9 Best Self Tan ...
This genius fake-tan remover is like an exfoliating mitt and bar soap all in one. Keep in mind that it's way too harsh...
Read more >
7 Tools to Detect Photoshopped & Fake Images (+ Tutorials)
On PC, you can simply remove the EXIF data by right click image -> Properties -> Details -> Remove Properties and Personal Information....
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