コード例 #1
0
        public void SetInt_ShouldSetNewValue()
        {
            // Prepare
            const int expectedValue = -22;
            // Execute
            var result        = _gSettings.SetInt("test-int", expectedValue);
            var resultUpdated = _gSettings.GetInt("test-int");

            // Assert
            result.Should().BeTrue();
            resultUpdated.Should().Be(expectedValue);

            // Reset the value to it's original state.
            _gSettings.Reset("test-int");
        }