Forum member

piotr_s

12 posts

Posts by piotr_s

  1. .NET Core unit tests for project build as exe

    Yes, different assembly name has been configured using AssemblyName property in project file.

  2. .NET Core unit tests for project build as exe

    Your first fix solves the problem. Second one is also working. Problem was related with different project file name and assembly name. My project file name was TaskRunner.csproj while assembly name Company.TaskRunner. All unit tests are "green" after changing project name to match assembly name. Th…

  3. .NET Core unit tests for project build as exe

    Hi, problem still persists, with windows events log entry "System.IO.FileNotFoundException: Could not load file or assembly 'nCrunch.TestRuntime.DotNetCore". I can share project details with you, but I would like to do it more privately. How can we do this?

  4. .NET Core unit tests for project build as exe

    After installing new version of NCruch, sample solution has started to work. But my production code generates error. Error details from NCrunch: [quote] [PID:23568 10:34:28.4867 LocalBuildTask-86] ERROR (Internal): System.InvalidOperationException: Sekwencja nie zawiera pasującego elementu. w…

  5. .NET Core unit tests for project build as exe

    I've created sample solution to show when the error occures. While running unit tests (even if test is green) in the windows events log there will be entries with information about missing nCrunch.TestRuntime.DotNetCore. Link to sample solution: https://drive.google.com/file/d/15N5s5X5aurPGzYvr…

  6. .NET Core unit tests for project build as exe

    Setting "UseAppHost=true" allows to run unit tests, but tests are "red". I've noticed that there are entries in Windows events log with information: "System.IO.FileNotFoundException: Could not load file or assembly 'nCrunch.TestRuntime.DotNetCore, Version=5.20.0.2, Culture=neutral, PublicKeyToken=01…

  7. .NET Core unit tests for project build as exe

    Sorry for answering after such a long time. Setting custom property "UseAppHost=true" solves the problem.

  8. .NET Core unit tests for project build as exe

    I'll check setting "UseAppHost" custom build property and let you know if it works.

  9. .NET Core unit tests for project build as exe

    I appreciate you help. It would be great if NCrunch would have such a functionality (maybe not turned of by default, it could be configurable).

  10. .NET Core unit tests for project build as exe

    In my opinion, instead of necessity to write additional code to copy .exe file or linking it as resource, NCrunch should know that if the project is configured as windows application (console or desktop), there are two files .exe and .dll and these two files should be copied to the NCrunch working d…

  11. .NET Core unit tests for project build as exe

    Hi, this .exe file is used to execute some action, which result is checked by unit test assertions. I could add this exe file as a resource, but if I change build configuration, the exe file won't change and won't be able to use corresponding dll file.

  12. .NET Core unit tests for project build as exe

    Hi, I've project A configured as Windows application (exe). Unit test project B is using reference for project A. In .NET Core Windows application project are build as two file .dll and .exe. Output folder of test project B contains these two files, but workspace folder used by NCrunch contains onl…