Skip to content

Commit

Permalink
Fix Delete Invalid Room Test case (#37887)
Browse files Browse the repository at this point in the history
* Increase Rooms .Net SDK code coverage

* List Room get first two pages

* Fix delete invalid room test

* Remove unneeded recordings

---------

Co-authored-by: Minnie Liu <[email protected]>
  • Loading branch information
minnieliu and Minnie Liu authored Jul 27, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c30aff9 commit fd8cf08
Showing 3 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -659,16 +659,16 @@ public async Task DeleteRoom_Success()
}

[Test]
public void DeleteRoomDoesNotExist_Fail()
public void DeleteInvalidRoomId_Fail()
{
// Arrange
var roomsClient = CreateInstrumentedRoomsClient(RoomsClientOptions.ServiceVersion.V2023_06_14);
var ivnalidRoomId = "99437728598278806";
var ivnalidRoomId = "123";

// Act and Assert:
RequestFailedException? ex = Assert.ThrowsAsync<RequestFailedException>(async () => await roomsClient.DeleteRoomAsync(ivnalidRoomId));
Assert.NotNull(ex);
Assert.AreEqual(404, ex?.Status);
Assert.AreEqual(400, ex?.Status);
}

private void ValidateRoom(CommunicationRoom? room)

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd8cf08

Please sign in to comment.