ApplicationSettingsTests.ReadFromInstanceTests.When_reading_from_public_properties.Then_all_public_properties_should_be_get C# (CSharp) Method

Then_all_public_properties_should_be_get() private method

private Then_all_public_properties_should_be_get ( ) : void
return void
        public void Then_all_public_properties_should_be_get()
        {
            var nonEmptyString = "a";
            var anyInt = 1;

            var settings = new AppSettings("filename", FileOption.None);

            var mySettings = new SettingsWithPublicGetters(nonEmptyString, anyInt, null);
            mySettings.DoubleValue = 1.1d;

            settings.ReadFrom(mySettings);

            Assert.AreEqual(nonEmptyString, settings.GetValue("NonEmptyStringValue"));
            Assert.AreEqual(anyInt, settings.GetValue<int>("IntValue"));
            Assert.AreEqual(null, settings.GetValue<int?>("EmptyIntValue"));
            Assert.AreEqual(1.1d, settings.GetValue<double>("DoubleValue"));
        }