Exemple #1
0
        public void SetValue_ShouldUpdateTheValueWithSuccess()
        {
            // Prepare
            const int expectedNewValue = 42;
            var       gv = new GVariant(expectedNewValue);
            // Execute
            var result   = _gSettings.SetValue("test-int", gv);
            var newValue = _gSettings.GetInt("test-int");

            // Validate
            Assert.True(result);
            Assert.Equal(expectedNewValue, newValue);
            // Reset the value for next tests
            _gSettings.Reset("test-int");
        }