public void TestRadarController() { try{ RadarController rc = new RadarController(); rc.Start(); Collider c1 = new Collider(); rc.OnTriggerEnter(c1); Collider c2 = new Collider(); rc.OnTriggerExit(c2); }catch (Exception e) { //Something went wrong Assert.True(false, "error " + e.ToString()); //Assert.True(false); } }
public void TestRadarController() { try{ RadarController rc = new RadarController(); rc.Start(); Collider c1 = new Collider(); rc.OnTriggerEnter(c1); Collider c2 = new Collider(); rc.OnTriggerExit(c2); }catch(Exception e) { //Something went wrong Assert.True(false,"error "+e.ToString()); //Assert.True(false); } }