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 5963041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:11:29+00:00 2026-05-22T19:11:29+00:00

Similar to What is the best format to store test data in a file?

  • 0

Similar to What is the best format to store test data in a file? I want make some tests with data in my class.
This class must receive a list of data with date and value. So basically, I just need to store values and when I read I can say the initial date and just add a constant to get next correspondent date – value. Something like: 1234.56;6543.21;1111.22

I’m using csv right now, but I’m wondering if some xml, sqlite or pure IEnumerable in C# will be a better option. Some experience about this?

  • 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-22T19:11:30+00:00Added an answer on May 22, 2026 at 7:11 pm

    Choose the simplest thing that works and is maintainable. In order of preference

    • If you your data is relatively simple (as depicted in the question), you could do it in-memory within the test-fixture class. Use factory methods / types to get the expected Data.
    • If you want structured data that is easy to read/edit, use CSV (everyone knows how to use Excel) or YAML (another text-based format) or a custom text file.
    • On the other hand, if you need structured schema-valid data, then you could choose something like XML or canned test-databases.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to store some data in a file. FOR THE MOMENT each record
I have a code similar to this: $.ajax({ success: function(data) { text = '';
Similar question: Best Resources for Learning AS3 I am interested in learning AS3 and
I found another similar question: Best way to download images from XML content in
Wondering what is the best or most popular database client tool. Similar to Microsoft's
Similar to the way Resharper makes copying or moving a type to another file
Similar to what Facebook does on its newsfeed, I want to allow commenting on
Similar to this question only the other way of flow. Insert Picture into SQL
Similar to this thread, but not exactly: How To Cache Information In A Threadsafe
Similar Stack Overflow Question I want users to be able to search through my

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.