Exemple #1
0
        public void SetString_ShouldSetNewValue()
        {
            // Prepare
            var expectedValue = "Havana Club";
            // Execute
            var result        = _gSettings.SetString("test-string", expectedValue);
            var resultUpdated = _gSettings.GetString("test-string");

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