public static void Test() { // Constructor tests Battery battery0 = new Battery(0); Rover rover0 = new Rover("Sojourner"); Motor motor0 = new Motor("RotoPro 10X"); Drill drill0 = new Drill("DrillMaster 1000"); SolarPanel solarPanel0 = new SolarPanel("ReflectoMaster"); LocationRadar locationRadar0 = new LocationRadar("WhereDoo"); NameRadar nameRadar0 = new NameRadar("Whatsit-O-Meter"); SizeRadar sizeRadar0 = new SizeRadar("SeeBiggy"); Map map0 = new Map(20); Location location0 = new Location(5, 5); Specimen specimen0 = new Specimen("John: rocks", 10); Location location1 = new Location(10, 10, specimen0); // Battery tests // Drain(int) // Charge(int) // Load(Rover) // Unload() // ToString() // Device tests // Rover tests // // LoadBattery(Battery) // LoadBattery(List<Battery>) // AttachBattery(Battery, Device) // AttachDevice(Device) // DetachDevice(Device) // FindBattery(String) // Move(int, int) // Place(int, int, Map) // ToString() // Motor tests // Move() // Drill tests // Drill() // SolarPanel tests // Charge() // Radar tests // LocationRadar tests // NameRadar tests // SizeRadar tests // Map tests // Location tests // Specimen tests }
public void RunDrill(Drill drill) { drill.DrillHere(); }