locked
Moles.runner with a custom app - how to pass arguments?

    Question

  • Hi,

     

    I'm trying to run moles.runner in the following way:

     

    moles.runner.exe TestApp.exe /runner:TestApp.exe /args:abc

     

    Where TestApp.exe is a custom app that contains the method I want to use mocking with.

     

    All works fine besides the fact that I can't pass the correct parameters to the TestApp.exe via the "args" option of moles.runner.exe. When I run the line above, my TestApp receives the entire set of arguments on the command line (i.e. "TestApp.exe /runner:TestApp.exe /args:abc"). What I wanted is that the app received only the argument specified in the "args" option (i.e. "abc").

     

    Anybody have a clue about this?

    I'm using moles.runner.exe version 0.94.51023.0.


    Tuesday, April 19, 2011 6:32 PM