mirror of
				https://github.com/inf112-v20/Fiasko.git
				synced 2025-11-04 11:43:44 +01:00 
			
		
		
		
	Tobias og Gabriel startet å teste Robot classen
This commit is contained in:
		
							
								
								
									
										15
									
								
								src/test/java/inf112/fiasko/roborally/RobotTest.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								src/test/java/inf112/fiasko/roborally/RobotTest.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
package inf112.fiasko.roborally;
 | 
			
		||||
 | 
			
		||||
import inf112.fiasko.roborally.element_properties.Position;
 | 
			
		||||
import inf112.fiasko.roborally.element_properties.Robot;
 | 
			
		||||
import static org.junit.Assert.assertEquals;
 | 
			
		||||
import org.junit.Test;
 | 
			
		||||
 | 
			
		||||
public class RobotTest {
 | 
			
		||||
    @Test
 | 
			
		||||
    public void testRobotGetDamageOnInitializedRobot(){
 | 
			
		||||
        Position robotPosition = new Position(3,6);
 | 
			
		||||
        Robot testRobotGetDamage = new Robot(6, robotPosition);
 | 
			
		||||
        assertEquals(0, testRobotGetDamage.getDamage());
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user