Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase Rooms .Net SDK code coverage #37866

Merged
merged 2 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
List Room get first two pages
  • Loading branch information
Minnie Liu committed Jul 27, 2023
commit af78af17863532d0ab1680fe13fa56806b71f667
Original file line number Diff line number Diff line change
Expand Up @@ -349,23 +349,25 @@ public async Task AddOrUpdateParticipants_IncorrectlyFormattedMri_Fail()
}

[Test]
public async Task GetRoomsLiveTest_FirstRoomIsNotNull_Succeed()
public async Task GetRoomsLiveTest_FirstTwoPagesOfRoomIsNotNull_Succeed()
{
// Arrange
RoomsClient roomsClient = CreateInstrumentedRoomsClient(RoomsClientOptions.ServiceVersion.V2023_06_14);
// First create a room to ensure that the list rooms will not be empty.
CommunicationRoom createdRoom = await roomsClient.CreateRoomAsync();
CommunicationRoom? firstActiveRoom = null;
int roomCounter = 0;
try
{
AsyncPageable<CommunicationRoom> allActiveRooms = roomsClient.GetRoomsAsync();
await foreach (CommunicationRoom room in allActiveRooms)
{
firstActiveRoom = room;
break;
if (roomCounter > 60)
{
break;
}
ValidateRoom(room);
roomCounter++;
}

ValidateRoom(firstActiveRoom);
}
catch (Exception ex)
{
Expand Down

This file was deleted.

Loading