AWSSDK.UnitTests.IniFileTest.AddAndEditProperties C# (CSharp) Method

AddAndEditProperties() private method

private AddAndEditProperties ( ) : void
return void
        public void AddAndEditProperties()
        {
            var properties = new List<KeyValuePair<string, string>>();
            properties.Add(new KeyValuePair<string, string>("property", "value3"));
            properties.Add(new KeyValuePair<string, string>("property2", "value2"));

            using (var tester = new IniFileTester(ValidSection1))
            {
                tester.TestFile.EditSection("section", properties);
                tester.AssertSection("section", "property", "value3", "property2", "value2");
                tester.TestFile.Persist();
                tester.AssertFileContents("[section]" + Environment.NewLine +
                    "property=value3" + Environment.NewLine +
                    "property2=value2");
            }
        }