Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Added missing PartyRoom test
Browse files Browse the repository at this point in the history
  • Loading branch information
laurislopata committed Apr 28, 2022
1 parent 3c316c7 commit 570bc7d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/src/androidTest/java/ch/sdp/vibester/PartyRoomTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@ class PartyRoomTest {
}
}

@Test
fun correctAddEmail() {
var emailList = mutableListOf("email1", "email2")
val testPartyRoom = PartyRoom()

testPartyRoom.setEmailList(emailList)
testPartyRoom.addUserEmail("email3")
emailList = mutableListOf("email1", "email2", "email3")

for(email in emailList) {
assert(testPartyRoom.getEmailList().contains(email))
}
}

@Test
fun correctSetRoomID() {
val roomID = "testRoomID"
Expand Down

0 comments on commit 570bc7d

Please sign in to comment.