diff options
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibMatrix.Tests/Tests/RoomTests.cs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Tests/LibMatrix.Tests/Tests/RoomTests.cs b/Tests/LibMatrix.Tests/Tests/RoomTests.cs index 913e044..bec8d18 100644 --- a/Tests/LibMatrix.Tests/Tests/RoomTests.cs +++ b/Tests/LibMatrix.Tests/Tests/RoomTests.cs @@ -52,7 +52,7 @@ public class RoomTests : TestBed<TestFixture> { var hs = await HomeserverAbstraction.GetHomeserver(); var room = await RoomAbstraction.GetTestRoom(hs); Assert.NotNull(room); - var members = room.GetMembersAsync(); + var members = room.GetMembersEnumerableAsync(); Assert.NotNull(members); bool hitMembers = false; await foreach (var member in members) { @@ -248,12 +248,7 @@ public class RoomTests : TestBed<TestFixture> { } await Task.WhenAll(tasks); - var states = room.GetMembersAsync(false); - var count = 0; - await foreach (var state in states) { - count++; - } - // Assert.Equal(++expectedCount, count); - Assert.Equal(16, count); + var states = await room.GetMembersListAsync(false); + Assert.Equal(16, states.Count); } } |