Example #1
0
        public void ChangedIsSetWhenChildPropertyIsChanged()
        {
            TestThingSerialized thing    = new TestThingSerialized();
            SerializedPropertyX property = new SerializedPropertyX("name", typeof(TestThingSerialized), thing);

            property["x"].Value = 10;
            Assert.IsTrue(property.Changed);
        }
Example #2
0
        public void ChangedIsClearedWhenApplyingModifiedProperties()
        {
            TestThingSerialized thing    = new TestThingSerialized();
            SerializedPropertyX property = new SerializedPropertyX("name", typeof(TestThingSerialized), thing);

            property.Value = new TestThingSerialized();
            Assert.IsTrue(property.Changed);
            property.ApplyModifiedProperties();
            Assert.IsFalse(property.Changed);
        }