示例#1
0
        public void GivenForBool_WhenSet_ThenBoolStored()
        {
            PlayerPrefs.SetInt(TestKey, 0);

            PowerPrefs.ForBool().Set(TestKey, true);

            Assert.That(PlayerPrefs.GetInt(TestKey, 100), Is.EqualTo(1));
        }
示例#2
0
        public void GivenForBool_WhenGet_ThenBoolRetrieved()
        {
            PlayerPrefs.SetInt(TestKey, 0);

            var actual = PowerPrefs.ForBool().Get(TestKey, true);

            Assert.That(actual, Is.False);
        }