Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6708589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:46:41+00:00 2026-05-26T07:46:41+00:00

What is Dummy used for in FakeItEasy? How does it differ from A.Fake or

  • 0

What is Dummy used for in FakeItEasy? How does it differ from A.Fake or A.Ignored ?

Thanks 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:46:41+00:00Added an answer on May 26, 2026 at 7:46 am

    A dummy isn’t really used for anything by FakeItEasy itself, it’s merely a way to create dummy instances that you can use in your tests.

    For example, say that you want to test the following class:

    public class Foo
    {
        public void Bar(DateTime someDate);
    }
    

    Now, in one of your tests you want to invoke the bar method but the value that is passed to it is not important to the test, instead of writing:

    foo.Bar(new DateTime(2000, 1, 1));
    

    You can write:

    foo.Bar(A.Dummy<DateTime>());
    

    This signals that the value is really not important to the test so the whole reason for using it is to communicate intent better.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used soapUI tool for fetch soap request from my dummy wsdl server <?xml
I have the following used to create a dummy high score table if if
I have dummy username and pasword to enter in linkedin. From an asp.net application,
I've used the below jcl: //STEP1 EXEC PGM=IEBGENER //SYSUT1 DD DUMMY,RECFM=FB,LRECL=80 //SYSUT2 DD DSN=RK.MYDIR.FILES(NEW1),DISP=(SHR)
I have a C++ unmanaged class NativeDog that needs to be used from C#,
Ok, I have the following code that used to work but now it does
In Matlab, the tilda symbol can be used to ignore a certain parameter from
As an example, just a couple of dummy objects that will be used together.
How do you manage dummy data used for tests? Keep them with their respective
Image Dummy = Image.FromFile(image.png); Dummy.Save(image.bmp, ImageFormat.Bmp); what the question says i have these using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.