Exemplo n.º 1
0
        public void TestWithNullContainer()
        {
            IAdapter adapter = new ObstacleAdapter(null);

            GameObjectStub stub = new GameObjectStub();

            adapter.SetFields(stub);
        }
Exemplo n.º 2
0
        public void TestWithBadAdapterContainer()
        {
            AdapterContainer adapterContainer = new AdapterContainer();

            adapterContainer.SetGameObject(null);

            IAdapter adapter = new ObstacleAdapter(adapterContainer);

            GameObjectStub stub = new GameObjectStub();

            adapter.SetFields(stub);
        }