about summary refs log tree commit diff
path: root/Tests
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-24 17:44:03 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-24 17:44:03 +0200
commit478fc1b0ef855530e1e93c5212d154280f9d7dd8 (patch)
tree3bb348b939f8d78e85337d49d3163ac5dbc8e8cc /Tests
parentfix synchelper null check (diff)
downloadLibMatrix-478fc1b0ef855530e1e93c5212d154280f9d7dd8.tar.xz
Minor cleanup
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibMatrix.Tests/Tests/RoomTests.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/Tests/LibMatrix.Tests/Tests/RoomTests.cs b/Tests/LibMatrix.Tests/Tests/RoomTests.cs
index 72a2775..65f1cca 100644
--- a/Tests/LibMatrix.Tests/Tests/RoomTests.cs
+++ b/Tests/LibMatrix.Tests/Tests/RoomTests.cs
@@ -2,6 +2,7 @@ using System.Text;
 using ArcaneLibs.Extensions;
 using LibMatrix.EventTypes.Spec.State;
 using LibMatrix.Homeservers;
+using LibMatrix.Responses;
 using LibMatrix.Services;
 using LibMatrix.Tests.Abstractions;
 using LibMatrix.Tests.Fixtures;
@@ -150,11 +151,11 @@ public class RoomTests : TestBed<TestFixture> {
         var room = await RoomAbstraction.GetTestRoom(hs);
         Assert.NotNull(room);
 
-        await room.SendStateEventAsync("gay.rory.libmatrix.unit_tests", new ProfileResponseEventContent() {
+        await room.SendStateEventAsync("gay.rory.libmatrix.unit_tests", new UserProfileResponse() {
             DisplayName = "wee_woo",
             AvatarUrl = "no"
         });
-        await room.SendStateEventAsync("gay.rory.libmatrix.unit_tests", "state_key_maybe", new ProfileResponseEventContent() {
+        await room.SendStateEventAsync("gay.rory.libmatrix.unit_tests", "state_key_maybe", new UserProfileResponse() {
             DisplayName = "wee_woo",
             AvatarUrl = "yes"
         });
@@ -167,16 +168,16 @@ public class RoomTests : TestBed<TestFixture> {
         var room = await RoomAbstraction.GetTestRoom(hs);
         Assert.NotNull(room);
 
-        await room.SendStateEventAsync("gay.rory.libmatrix.unit_tests", new ProfileResponseEventContent() {
+        await room.SendStateEventAsync("gay.rory.libmatrix.unit_tests", new UserProfileResponse() {
             DisplayName = "wee_woo",
             AvatarUrl = "no"
         });
-        await room.SendStateEventAsync("gay.rory.libmatrix.unit_tests", "state_key_maybe", new ProfileResponseEventContent() {
+        await room.SendStateEventAsync("gay.rory.libmatrix.unit_tests", "state_key_maybe", new UserProfileResponse() {
             DisplayName = "wee_woo",
             AvatarUrl = "yes"
         });
 
-        var state1 = await room.GetStateAsync<ProfileResponseEventContent>("gay.rory.libmatrix.unit_tests");
+        var state1 = await room.GetStateAsync<UserProfileResponse>("gay.rory.libmatrix.unit_tests");
         Assert.NotNull(state1);
         Assert.NotNull(state1.DisplayName);
         Assert.NotEmpty(state1.DisplayName);
@@ -185,7 +186,7 @@ public class RoomTests : TestBed<TestFixture> {
         Assert.Equal("wee_woo", state1.DisplayName);
         Assert.Equal("no", state1.AvatarUrl);
 
-        var state2 = await room.GetStateAsync<ProfileResponseEventContent>("gay.rory.libmatrix.unit_tests", "state_key_maybe");
+        var state2 = await room.GetStateAsync<UserProfileResponse>("gay.rory.libmatrix.unit_tests", "state_key_maybe");
         Assert.NotNull(state2);
         Assert.NotNull(state2.DisplayName);
         Assert.NotEmpty(state2.DisplayName);