public void PersistentDataPathFileChecksum() { float randomNumber = Random.value; DataTest dataTestSave = DataTest.Create("DataTest_Checksum", Config.ForPersistentDataPathFile <DataTest>(checksum: true)); dataTestSave.VarTest = randomNumber; dataTestSave.Save(); DataTest dataTestLoad = DataTest.Create("DataTest_Checksum", Config.ForPersistentDataPathFile <DataTest>(checksum: true)); dataTestLoad.Load(); Assert.AreEqual(dataTestLoad.VarTest, randomNumber); }
public void PersistentDataPathFileText() { float randomNumber = Random.value; DataTest dataTestSave = DataTest.Create("DataTest_Text", Config.ForPersistentDataPathFile <DataTest>(binary: false)); dataTestSave.VarTest = randomNumber; dataTestSave.Save(); DataTest dataTestLoad = DataTest.Create("DataTest_Text", Config.ForPersistentDataPathFile <DataTest>(binary: false)); dataTestLoad.Load(); Assert.AreEqual(dataTestLoad.VarTest, randomNumber); }