Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Need your help on NUnit

Need your help on NUnit

Scheduled Pinned Locked Moved C#
tutorialquestioncsharpcomhelp
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sachin Gedam
    wrote on last edited by
    #1

    Hello Friends, I have to write Nunit Test cases for a console EXE which is written in C#. In NUnit test class I can take reference of a targeted DLL or COM object. But I am not able to get a reference of a EXE. Please guide me how to get a reference of a EXE in C# class. How can I use methods and properties of that EXE in C# class? Waiting for your reply. Sachin Sachin Gedam (Software Engg.) Pune India

    M S 2 Replies Last reply
    0
    • S Sachin Gedam

      Hello Friends, I have to write Nunit Test cases for a console EXE which is written in C#. In NUnit test class I can take reference of a targeted DLL or COM object. But I am not able to get a reference of a EXE. Please guide me how to get a reference of a EXE in C# class. How can I use methods and properties of that EXE in C# class? Waiting for your reply. Sachin Sachin Gedam (Software Engg.) Pune India

      M Offline
      M Offline
      Maqsood Ahmed
      wrote on last edited by
      #2

      Hello Sachin, It is not necessory to make another project for NUnit. You can include a TestFixture class inside your console exe project, compile it and load the exe in NUnit GUI. It should execute the test cases for the console exe. Cheers. HTH Maqsood Ahmed [MCP,C# SQL Server] Kolachi Advanced Technologies http://www.kolachi.net

      1 Reply Last reply
      0
      • S Sachin Gedam

        Hello Friends, I have to write Nunit Test cases for a console EXE which is written in C#. In NUnit test class I can take reference of a targeted DLL or COM object. But I am not able to get a reference of a EXE. Please guide me how to get a reference of a EXE in C# class. How can I use methods and properties of that EXE in C# class? Waiting for your reply. Sachin Sachin Gedam (Software Engg.) Pune India

        S Offline
        S Offline
        Sachin Gedam
        wrote on last edited by
        #3

        Dear Maqsood, Yah normally, in earlier project we did the same thing. We used to write a test case in same assembly. But here customer wants to maintain Test Project on other location. Even he want the different namespace for the same. And the problem start from here, I am not able to take reference of EXE in my NUnit Project, so that I can use the methods and property of that EXE. Hope you could get my problem. Sachin Gedam (Software Engg.) Pune India

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups