Exemple #1
0
        public void CopyFromSameType_Field_ValueType()
        {
            var orig = new SettingsA();
            var copy = new SettingsA();

            orig.IntegerFieldA = 3;

            copy.CopyValuesFrom(orig);

            Assert.AreEqual(3, copy.IntegerFieldA);
        }
Exemple #2
0
        public void CopyFromSameType_Property_ValueType()
        {
            var orig = new SettingsA();
            var copy = new SettingsA();

            orig.IntegerPropertyA = 5;

            copy.CopyValuesFrom(orig);

            Assert.AreEqual(5, copy.IntegerPropertyA);
        }