Beispiel #1
0
        public void Setup()
        {
            transportObj = new GameObject();

            transport = transportObj.AddComponent <AsyncFallbackTransport>();

            // this gives warnings,  it is ok
            transport1 = Substitute.For <AsyncTransport>();
            transport2 = Substitute.For <AsyncTransport>();

            transport.transports = new[] { transport1, transport2 };
            conn1 = Substitute.For <IConnection>();
            conn2 = Substitute.For <IConnection>();
        }