コード例 #1
0
        public void SetBoolean_ShouldReturnTheBooleanValue()
        {
            // Prepare
            // Execute
            var result        = _gSettings.SetBoolean("my-flag-is-active", false);
            var resultUpdated = _gSettings.GetBoolean("my-flag-is-active");

            // Assert
            Assert.True(result);
            Assert.False(resultUpdated);
            // Reset the value to it's original state.
            _gSettings.Reset("my-flag-is-active");
        }