Exemple #1
0
        public void SetUInt_ShouldSetNewValue()
        {
            // Prepare
            var expectedValue = (uint)22;
            // Execute
            var result        = _gSettings.SetUInt("test-uint", expectedValue);
            var resultUpdated = _gSettings.GetUInt("test-uint");

            // Assert
            Assert.True(result);
            Assert.Equal(expectedValue, resultUpdated);
            // Reset the value to it's original state.
            _gSettings.Reset("test-uint");
        }