ssannandeji / Zenject-2019

Dependency Injection Framework for Unity3D
MIT License
2.53k stars 363 forks source link

Cant add Zenject-TestFramework to Solution #671

Open kapyar opened 4 years ago

kapyar commented 4 years ago

Hi, I feel desperate at that time, I add Zenject-TestFramework to my Assembly-Editor and after I tried to run it unload this reference and project became red.

[TestFixture]
public class UnityIapManagerTests : ZenjectUnitTestFixture 
    {
        SignalBus _signalBus = null;

        [SetUp]
        public void SetUp()
        {
            SignalBusInstaller.Install(Container);
            _signalBus = Container.Resolve<SignalBus>();

        }

What I have missed?

mwnDK1402 commented 4 years ago

Same problem here. Referencing Zenject-TestFramework in my Assembly Definition doesn't give me access to the Zenject namespace in Zenject-TestFramework.

EDIT: The problem seems to be that it doesn't work as a UPM package: https://github.com/starikcetin/Extenject/tree/upm