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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:23:35+00:00 2026-05-15T06:23:35+00:00

I am porting over some C++ assembly to VB that performs demodulation of various

  • 0

I am porting over some C++ assembly to VB that performs demodulation of various waveforms. I decided to go the unit test route instead of building a test app to get a feel for how testing is performed. The original demodulation code accepts an array that is the waveform along with some other arguments. How should one go about performing a test on something that has an array as an argument? Is it acceptable to generate fake data in a file and read it in at the beginning of the test?

On a side note – The original C++ code was written because we were performing math that we couldn’t do in VB6 so we had to cross boundaries between C++ and VB6 and arrays were used. Is there a “better” way of handling large amounts of data in the .NET world that us VB6 programmers may not yet be privy to? Or if we aren’t crossing that managed/un-managed boundary, should we be representing our data as objects instead?

Thanks all!

  • 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-15T06:23:36+00:00Added an answer on May 15, 2026 at 6:23 am

    Depends on how big the test arrays are. If they are not so big, I would prefer keeping them in the code – this way unit tests are self containing, without dependencies to external resources.

    However, if the array is huge, it can be stored in a fake data file. Alternatively, if generation is not very complicated or time consuming, it could even be generated on the fly.

    Even if you decide to refactor your API, I recommend to write the unit tests first for the current API. Once you have the tests, you can refactor more safely.

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

Sidebar

Related Questions

I have some amount of older game code that I am porting over to
I'm porting over some code from one project to another within my company and
I am porting some C# code over to Java. I am having trouble with
i am porting over a website from asp. i have one page that i
I'm porting over some templated code from Windows and I'm hitting some compiler differences
I am porting over some Java code into Google's Go language and I converting
I am porting over some old F# code from CTP 1.9.6.8 The code uses
I'm porting some code I prototyped in python over to flash and while actionscript
We are currently porting some php scripts that are pulling datetimes from the facebook
I'm writing some unit tests which are going to verify our handling of various

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.