public void KeybindCollectionIntegrity() { foreach (var val in testData) { var kc = new KeybindCollection(); for (int i = 0; i < val.Length; i++) { kc.Add(val[i]); } Assert.AreEqual(kc, Deserialize <KeybindCollection>(Serialize(kc))); } }
public static FormMain Create(string tileTypePath, KeybindCollection kc) { var kb = kc.ToDictionary(); return(new FormMain(tileTypePath, kb)); }
public void ResetToDefault() { tempKeybinds = new KeybindCollection(); UpdateFields(); }