public void OddKeyInt() { var storage = new PreferenceStorage (); var expectedInt = 4096; storage.SetInt (Key2, expectedInt); var i = storage.GetInt (Key); Assert.AreEqual (PreferenceStorage.Defaults.Int, i); var i2 = storage.GetInt (Key2); Assert.AreEqual (expectedInt, i2); }
public void SetGetInt() { var storage = new PreferenceStorage (); var expected = 133742; storage.SetInt (Key, expected); { var actual = storage.GetInt (Key); Assert.AreEqual (expected, actual); } storage.SetInt (Key, expected + 1); { var actual = storage.GetInt (Key); Assert.AreEqual (expected + 1, actual); } }