예제 #1
0
        public void SetStringV_ShouldSetNewArrayOfString()
        {
            // Prepare
            var newValues = new List <string> {
                "Waldo", "Willy", "Wonka"
            };
            // Execute
            var successToChangeValue = _gSettings.SetStringV("list-my-pets", newValues);
            var pets = _gSettings.GetStringV("list-my-pets");

            // Assert
            successToChangeValue.Should().Be(true, "Without being true, it means it was not able to update the schema");
            pets.Should().BeEquivalentTo(newValues);
            // Reset value
            _gSettings.Reset("list-my-pets");
        }