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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:28:33+00:00 2026-05-22T20:28:33+00:00

I recently ran into a brick wall with Visual Studio 2008’s testing framework: testing

  • 0

I recently ran into a brick wall with Visual Studio 2008’s testing framework: testing 64 bit dlls is not possible with VS 2008. I have a project that compiles to x64 only and I need to create some unit tests for the project and I can’t use the VS2008 testing framework to do it.

Subsequently, I downloaded the latest NUnit framework (which as far as I understand supports x64 testing), but now I’m trying to duplicate the same behavior that Visual Studio had with its testing framework. Namely, I would like to instantiate classes within the text fixture that are defined in my project.

Here is an example:

  • I have a project (call it MyProject) that compiles to an executable: MyProject.exe
  • There is a class within MyProject that’s called MyClass.
  • I have a separate project for my tests, called MyProjectTest, and it compiles to a dll (so I can run it with NUnit).
  • How can I instantiate MyClass inside MyProjectTest?

As far as I understand NUnit seems to be designed for testing DLLs not EXEs, so what do I have to do if I want to test classes within an EXE? Reflection? I assume that’s how VS2008’s testing framework gets access to the classes…

  • 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-22T20:28:33+00:00Added an answer on May 22, 2026 at 8:28 pm

    How can I instantiate MyClass inside MyProjectTest?

    The normal way to do this is for your MyProjectTest project to contain a reference to MyProject

    But it seems most people don’t like the idea of referencing an exe and hence would have MyClass defined in a third dll which is referenced by both the MyProject and MyProjectTest

    As far as I understand NUnit seems to be designed for testing DLLs not EXEs.

    I must admit, all my tests are in dlls, but the default filespec for the Nunit Add assembly dialog box is *.dll and *.exe which would suggest otherwise.

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

Sidebar

Related Questions

I ran into a strange problem with a Visual Studio 2008 project I was
G'day, I was using Test::Class perl module for some testing recently and ran into
I recently ran into this problem: Rails 3 link_to (:method => :delete) not working
I recently was working with some dynamic Search Expressions and ran into a bit
I have recently ran into a problem that would not allow me to use
I recently ran into a problem that I thought boost::lambda or boost::phoenix could help
I recently ran into a issue where intermediate link betweeen a TCP server and
I recently ran into a problem with a COM object that was using a
A co-worker recently ran into a situation where a query to look up security
I'm writing a C parser using PLY, and recently ran into a problem. This

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.