public void Test() { var store = new ValueStore(); IniAdapter.Load(store, ini); var node = store.AddRoot("Superfluous", "Value"); node.AddChild("Child", "Value"); var profile = new RuntimeProfile(); profile.Store = store; profile.SaveToStore(); var newIni = IniAdapter.Save(profile.Store); System.IO.File.WriteAllText("/Users/adrian/Desktop/orig.ini", SortAndTrim(ini)); System.IO.File.WriteAllText("/Users/adrian/Desktop/new.ini", SortAndTrim(newIni)); Assert.True(SortAndTrim(ini) == SortAndTrim(newIni)); }
public void CopyAsIniFile() { EditorGUIUtility.systemCopyBuffer = IniAdapter.Save(Store); }