Exemple #1
0
        public void TestPasswordGetterSetter()
        {
            IObjectState state = new MutableObjectState
            {
                ServerData = new Dictionary <string, object>()
                {
                    { "username", "kevin" },
                    { "password", "hurrah" },
                }
            };
            AVUser user = AVObjectExtensions.FromState <AVUser>(state, "_User");

            Assert.AreEqual("hurrah", user.GetState()["password"]);
            user.Password = "******";
            Assert.NotNull(user.GetCurrentOperations()["password"]);
        }