public void ChangedIsSetWhenChildPropertyIsChanged() { TestThingSerialized thing = new TestThingSerialized(); SerializedPropertyX property = new SerializedPropertyX("name", typeof(TestThingSerialized), thing); property["x"].Value = 10; Assert.IsTrue(property.Changed); }
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); }