Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Access scene custom classes in methods with the UnityTest attribute

Discussion in 'Testing & Automation' started by dienat, May 20, 2019.

  1. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    278
    Hi,

    I have been using TDD and UnityTest attribute to run a scene but once i load the scene in the method with the UnityTest attribute i would like to use classes used in the scene. I tried adding the classes of the C# assembly project where are the classes used in the scene to the Test project where are the classes for testing but it doesnt work, i would like for instance check if certain class is used in the scene.
     
  2. Warnecke

    Warnecke

    Unity Technologies

    Joined:
    Nov 28, 2017
    Posts:
    17
  3. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    278
    It was a monobehaviour from other project,but i got to solve this problem thanks