import static org.junit.jupiter.api.Assertions.*;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

class SmartCardTest {

	@Test
	@DisplayName("Test staff and student boolean")
	void test() {
		SmartCard cardStudent = new SmartCard("Anna Undergrad");
		SmartCard cardStaff = new SmartCard("Dr. Bob Lecturer");
		cardStaff.setStaff(true);
		
		assertEquals(cardStudent.getOwner(),"Anna Undergrad", "Tests that getOwner returns the owner");
		assertFalse(cardStudent.isStaff(), "Tests whether a student card is a marked as a student");
				
		assertTrue(cardStaff.isStaff(), "Tests whether a staff card is a marked as staff");
	}

}
