AssertUserInfosMatch() публичный статический Метод

public static AssertUserInfosMatch ( IUserInfo expected, IUserInfo actual ) : void
expected IUserInfo
actual IUserInfo
Результат void
Пример #1
0
        public void UserUpdatedMessage()
        {
            var msg = new UserUpdatedMessage(UserInfoTests.GetTestUser());

            UserInfoTests.AssertUserInfosMatch(UserInfoTests.GetTestUser(), msg.User);

            msg = msg.AssertLengthMatches();
            UserInfoTests.AssertUserInfosMatch(UserInfoTests.GetTestUser(), msg.User);
        }
Пример #2
0
        public void UserLoggedIn()
        {
            var msg = new UserJoinedMessage(UserInfoTests.GetTestUser());

            msg.WritePayload(serverContext, writer);
            long length = stream.Position;

            stream.Position = 0;

            msg = new UserJoinedMessage();
            msg.ReadPayload(clientContext, reader);
            Assert.AreEqual(length, stream.Position);
            UserInfoTests.AssertUserInfosMatch(UserInfoTests.GetTestUser(), msg.UserInfo);
        }