Unit Test Question

Please forgive me as I am fairly new to Unit Testing.

I have a class library that I am trying to create Unit Tests for. This is a CSLA project, if that means anything to you guys.

I can create the test project and the tests fine but when I go to run the tests I get an error that the tester "could not load type". The library in question is one that I have referenced in my class library and my test project.

I don't know what to do so any direction here is greatly appreciated.

Thanks


Answer this question

Unit Test Question

  • kingces

    Are you using Nunit If so you need to have all the CSLA dlls in the same folder as the nunit exe's.

  • welsh

    The dll's in question do appear in the out directory, i also added them as a deployment item just to be sure and I still receive the following error:

    Test method SPMSUnitTest.BedTest.ToStringTest threw exception:  System.TypeLoadException: Could not load type 'ActiveObjects.ActiveBusinessBase' from assembly 'ActiveObjects, Version=1.6.2067.32920, Culture=neutral, PublicKeyToken=null'..


  • JasonV

    Dear Sir/Madam:

    i run the vb.net 2003 version software, when I try debug, I get a message:

    ......can not found nunit-gui.exe...

    could you please give me a hand and tell me where I can download this program

    yours sincerely

    yi peng



  • goh6613

    Check your the deployment directory at %USERPROFILE%\Local Settings\Application Data\VSEQT\<test run name>\out. If the .dll in question is not there, add it as a deployment item to your test run config file.

    Thanks,
    Leo Huang
    Dev, VSTS

  • Unbeliever

    Yes I am sure the ActiveObjects.dll is present, I have triple checked it. I just add the reference to my references and then in the appropriate class files say "using ActiveObjects" I do not use Assembly.load I just have type references as in:

    public class test : ActiveBusinessBase
    {

    }

    and I call some of the other static methods in the library as well.

  • baziz

    My Nunit v2.0 can not found

    nunit gui runner

    nunit gui.tests

    timing tests, could you please tell me where I can download them.

    yours sincerely

    yi peng



  • Danielson317

    Are you sure the ActiveObjects.dll is present How is it referenced are you doing Assembly.load, or just referencing the type



  • Ron Stahl

    Hello Ryan,

    Can you give us the whole text of the exception
    Do you have Code Coverage instrumentation enabled for any DLL

  • Unit Test Question