public void WeWillGetTheColliderIfItIsThere()
        {
            Assert.That(comp.collider, Is.Null);

            Collider body = new BoxCollider();
            go.AddComponent(body);

            Assert.That(comp.collider, Is.Not.Null);
            Assert.That(comp.collider, Is.SameAs(body));
        }
        public void WeWillGetTheCorrectColliderAfterAnInstantiation()
        {
            Collider body = new BoxCollider();
            go.AddComponent(body);
            Assert.That(comp.collider, Is.Not.Null);

            TestComponent inst = (TestComponent)GameObject.Instantiate(comp);
            Assert.That(inst.collider, Is.Not.Null);
            Assert.That(inst.collider, Is.Not.SameAs(body));
        }
        public void WeWillGetTheCorrectColliderAfterAnInstantiation()
        {
            GameObject go = new GameObject();
            Collider body = new BoxCollider();
            go.AddComponent(body);
            Assert.That(go.collider, Is.Not.Null);

            GameObject inst = (GameObject)GameObject.Instantiate(go);
            Assert.That(inst.collider, Is.Not.Null);
            Assert.That(inst.collider, Is.Not.SameAs(body));
        }