about summary refs log tree commit diff
path: root/Tests/LibMatrix.Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LibMatrix.Tests')
-rw-r--r--Tests/LibMatrix.Tests/DataTests/WhoAmITests.cs2
-rw-r--r--Tests/LibMatrix.Tests/GlobalUsings.cs2
-rw-r--r--Tests/LibMatrix.Tests/Tests/RoomTests.cs6
-rw-r--r--Tests/LibMatrix.Tests/Tests/TestCleanup.cs2
4 files changed, 6 insertions, 6 deletions
diff --git a/Tests/LibMatrix.Tests/DataTests/WhoAmITests.cs b/Tests/LibMatrix.Tests/DataTests/WhoAmITests.cs
index f737363..056cd3c 100644
--- a/Tests/LibMatrix.Tests/DataTests/WhoAmITests.cs
+++ b/Tests/LibMatrix.Tests/DataTests/WhoAmITests.cs
@@ -4,7 +4,7 @@ public static class WhoAmITests {
     public static void VerifyRequiredFields(this WhoAmIResponse obj, bool isAppservice = false) {
         Assert.NotNull(obj);
         Assert.NotNull(obj.UserId);
-        if(!isAppservice)
+        if (!isAppservice)
             Assert.NotNull(obj.DeviceId);
     }
 }
diff --git a/Tests/LibMatrix.Tests/GlobalUsings.cs b/Tests/LibMatrix.Tests/GlobalUsings.cs
index 8c927eb..c802f44 100644
--- a/Tests/LibMatrix.Tests/GlobalUsings.cs
+++ b/Tests/LibMatrix.Tests/GlobalUsings.cs
@@ -1 +1 @@
-global using Xunit;
\ No newline at end of file
+global using Xunit;
diff --git a/Tests/LibMatrix.Tests/Tests/RoomTests.cs b/Tests/LibMatrix.Tests/Tests/RoomTests.cs
index 65f1cca..3a11de9 100644
--- a/Tests/LibMatrix.Tests/Tests/RoomTests.cs
+++ b/Tests/LibMatrix.Tests/Tests/RoomTests.cs
@@ -109,7 +109,7 @@ public class RoomTests : TestBed<TestFixture> {
         var hs2 = await HomeserverAbstraction.GetRandomHomeserver();
         var room = await RoomAbstraction.GetTestRoom(hs);
         Assert.NotNull(room);
-        await room.InviteUserAsync(hs2.UserId,"Unit test!");
+        await room.InviteUserAsync(hs2.UserId, "Unit test!");
         await hs2.GetRoom(room.RoomId).JoinAsync();
         await room.KickAsync(hs2.UserId, "test");
         var banState = await room.GetStateAsync<RoomMemberEventContent>("m.room.member", hs2.UserId);
@@ -241,7 +241,7 @@ public class RoomTests : TestBed<TestFixture> {
         // var expectedCount = 1;
 
         var tasks = new List<Task>();
-        await foreach(var otherUser in otherUsers) {
+        await foreach (var otherUser in otherUsers) {
             tasks.Add(Task.Run(async () => {
                 await room.InviteUserAsync(otherUser.UserId);
                 await otherUser.GetRoom(room.RoomId).JoinAsync();
@@ -251,7 +251,7 @@ public class RoomTests : TestBed<TestFixture> {
 
         var states = room.GetMembersAsync(false);
         var count = 0;
-        await foreach(var state in states) {
+        await foreach (var state in states) {
             count++;
         }
         // Assert.Equal(++expectedCount, count);
diff --git a/Tests/LibMatrix.Tests/Tests/TestCleanup.cs b/Tests/LibMatrix.Tests/Tests/TestCleanup.cs
index e93de3d..8fb7443 100644
--- a/Tests/LibMatrix.Tests/Tests/TestCleanup.cs
+++ b/Tests/LibMatrix.Tests/Tests/TestCleanup.cs
@@ -59,7 +59,7 @@ public class TestCleanup : TestBed<TestFixture> {
             sw.Restart();
             if (response.Rooms?.Leave is { Count: > 0 }) {
                 // foreach (var room in response.Rooms.Leave) {
-                    // await hs.GetRoom(room.Key).ForgetAsync();
+                // await hs.GetRoom(room.Key).ForgetAsync();
                 // }
                 var tasks = response.Rooms.Leave.Select(async room => {
                     await hs.GetRoom(room.Key).ForgetAsync();