コード例 #1
0
        public void TestWithNullContainer()
        {
            IAdapter adapter = new ObstacleAdapter(null);

            GameObjectStub stub = new GameObjectStub();

            adapter.SetFields(stub);
        }
コード例 #2
0
        public void TestWithBadAdapterContainer()
        {
            AdapterContainer adapterContainer = new AdapterContainer();

            adapterContainer.SetGameObject(null);

            IAdapter adapter = new ObstacleAdapter(adapterContainer);

            GameObjectStub stub = new GameObjectStub();

            adapter.SetFields(stub);
        }