예제 #1
0
        public IEnumerator _2_Save()
        {
            settingObject.SaveData();

            yield return(null);

            Assert.IsTrue(settingObject.HasSave);
            // blank out the data to simulate that it's been unloaded
            testIntData.OnAfterDeserialize();
            Assert.AreEqual(testIntData.RuntimeValue, testIntData.InitialValue);
            Assert.AreNotEqual(testData, testIntData.RuntimeValue);
        }