public void Does_not_support_a_null_controller() { CharacterController characterController = null; var bodies = new DummyBodies(); var gameObjects = new DummyGameObjects(); Assert.Throws <ArgumentNullException>(() => { CharacterControllerCollisions .WithControllerAndBodiesAndGameObjects( characterController, bodies, gameObjects); }); }
public void Does_not_support_a_null_bodies() { var gameObject = new GameObject(); var characterController = gameObject.AddComponent <CharacterController>(); Bodies bodies = null; var gameObjects = new DummyGameObjects(); Assert.Throws <ArgumentNullException>(() => { CharacterControllerCollisions .WithControllerAndBodiesAndGameObjects( characterController, bodies, gameObjects); }); }